remote origin already exists

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

This widget could not be displayed.

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 Thursday in United States

Local Atlassian Research Workshop opportunity on Sep. 28th

We're looking for participants for another workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sh...

56 views 0 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