Skip to content

Instantly share code, notes, and snippets.

@jamesmichiemo
Created March 5, 2014 06:57
Show Gist options
  • Select an option

  • Save jamesmichiemo/9362434 to your computer and use it in GitHub Desktop.

Select an option

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.
#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