Created
March 5, 2014 06:57
-
-
Save jamesmichiemo/9362434 to your computer and use it in GitHub Desktop.
After changing the name of a remote repository, I found that I was unable to push any commits in my branch. I had to reset the remote url locally by using these git commands.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #check the current url to see if it matches the remote url | |
| git remote -v | |
| #update to new url with command | |
| git remote set-url origin [email protected]:username/newreponame.git | |
| #ls remote branches to confirm connection | |
| git ls-remote |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment