Skip to content

Instantly share code, notes, and snippets.

@crypto-jeronimo
Created March 17, 2018 13:19
Show Gist options
  • Save crypto-jeronimo/25e00ceee63d6ea8d64fe1945e3d59b2 to your computer and use it in GitHub Desktop.
Save crypto-jeronimo/25e00ceee63d6ea8d64fe1945e3d59b2 to your computer and use it in GitHub Desktop.
Rename GitHub repository

Update on GitHub

  1. Navigate to the "Admin" page for the repository you wish to rename.
  2. Change the Repository Name and click on the "Rename" button.
  3. GitHub will present you with a warning dialog. You should pay attention to this if you are renaming a repository shared by multiple people. In case you're the only committer, you can safely ignore the warning.

Update local copy: Option #1

  1. Remove the local copy entirely.
  2. Re-clone the repository.

Update local copy: Option #2

git remote rm origin
git remote add origin git@github.com:"yourusername"/"projectname".git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment