I have a local repository that I started to push to GitHub and before completion I decided to push it to BitBucket instead. Now I am stuck because attempts to add my BitBucket url like so:
git remote add origin https://tricpony@bitbucket.org/tricpony/timetracker_osx.git
fatal: remote origin already exists
Attempts to run this comment:
git remote rm git@github.com:tricpony/TimeTracker_OSX.git
fatal: No such remote: git@github.com:tricpony/TimeTracker_OSX.git
Poydras:TimeTracker aarthur$ git remote -v
origin https://github.com/tricpony/TimeTracker_OSX.git (fetch)
origin https://github.com/tricpony/TimeTracker_OSX.git (push)
Also tried git fetch -p, prompted me for credentials - this failed too. Any suggestions would be great. Please help!!
git remote set-url origin [url]
In this case:
git remote set-url origin https://tricpony@bitbucket.org/tricpony/timetracker_osx.git
This is the answer I was coming here to post.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can actually manually edit the config file to remove it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brian,
I think you want to use git remote remove <name> rather than git remote rm
If that doesn't work for you, I'd recommend reading the help file at git remote --help
I hope that helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.