Sreejith Sree
Sreejith Sree

Reputation: 3766

Issue with committing project in Gitlab

I created a new xamarin forms project in Visual Studio(Not a new one, took a copy of my old project) and tried to commit the entire project to Gitlab. For that, I created a new project in Gitlab and enter the following commands.

cd project folder
git init
git remote add origin My project remote
git add .
git commit -m "Initial commit"
git push -u origin master

But when I push the new project, it gets committed to my old project. I have given the new project remote but it gets pushed to the old one(New project is a copy of old one).

Is there anyone faced this type of issue from Gitlab? Is there any file from gitlab to be saved to the old project? Why my new project commit redirect to the old one?

Upvotes: 0

Views: 198

Answers (1)

Tiago Crizanto
Tiago Crizanto

Reputation: 312

Navigate to local repository and execute:

This command change the origin of your repository.

Upvotes: 1

Related Questions