Skip to content

Instantly share code, notes, and snippets.

@joe-mccann-dev
Last active December 27, 2021 07:23
Show Gist options
  • Save joe-mccann-dev/14004421dfeb2644b08b6b222a9154a9 to your computer and use it in GitHub Desktop.
Save joe-mccann-dev/14004421dfeb2644b08b6b222a9154a9 to your computer and use it in GitHub Desktop.
Change name of repository and update remote url.
  1. Update name in repository settings on Github.
  2. In local git repository, run git remote set-url origin git@github.com:github-user-name/new-repository-name.git
  3. Verify changes: git remote -v =>
origin  git@github.com:github-user-name/new-repository-name.git (fetch)
origin  git@github.com:github-user-name/new-repository-name.git (push)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment