Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

0 votes
Lance L May 21, 2013

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
TAGS
AUG Leaders

Atlassian Community Events