remote origin already exists

Deleted user May 15, 2013

Hi I have a problem with git actually.

I generate a new repsoitory on bitbucket. Then I create a new folder with a text file to test it and run the following commands:

C:\Users\xx\Desktop\a> git init
Initialized empty Git repository in C:/Users/xx/Desktop/a/.git/
C:\Users\xx\Desktop\a [master +1 ~0 -0 !]> git remote add origin  https://xx@bitbucket.org/xx/xx.git
fatal: remote origin already exists.

why I get the remote origin already exists? its a fresh created folder with just one file.

1 answer

I had the same problem. I resolved the issue by removing the [remote "origin"] section from the global config file at "C:\Program Files\Git\etc\gitconfig".

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in United States

Confluence Security Advisory

Good morning Members, Not sure if you are aware. Please read the following: https://www.icloud.com/keynote/0RyJ4VEdNUpjDpGfMhfZx9fEg#Confluence_Security_Advisor More details: https://co...

27 views 1 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you