Updating git repo name

I just changed the name of my github repo and now my local repo (as expected) can’t find it. How do I update the name, or am I just supposed to treat it as a new remote repo?

  • Cloning a Git repo without the .git directory
  • git commit You have some suspicious patch lines
  • Why is git not ignoring .dcu files?
  • Undoing a git merge
  • git plugin for Jenkins fails to clone a repo from local machine. Error code 128
  • Turning off the pager in git for the stash command only
  • Squashing a sequence of small merges from master into my branch with git while keeping reference to master?
  • What are best practices for maintaining/testing (mostly Perl) software in separate git repositories with dependencies between them?
  • Git-svn: create & push a new branch/tag?
  • Check that the local git repo has everything committed and pushed to master
  • git-lfs: where are the file stored ? how to get them?
  • How can I do a bugfix on master and integrate it into my less stable branch(es)?
  • One Solution collect form web for “Updating git repo name”

    From how I read this my understanding is that you changed the name of your repository (which changed the URL for it) and now you want to update the URL to match the new repository location.

    You can use git remote set-url <remote-name> <new-url> to switch the URL for an existing remote repo.

    Git Baby is a git and github fan, let's start git clone.