
One very nice feature in Github when you rename a repo, is that Github will save the old repo name and all the related URLs and redirect traffic to the new URLs. Github will redirect requests to the new URL Regarding the remote repository, if you are using Github or Github Enterprise as the server location for saving/distributing your repository remotely, you can simply rename the repository directly in the repo settings.įrom the main repo page, the settings tab is on the right, and the repo name is the first item on the page: Determine the new URL (for example, the new URL using Git: git remote set-url origin Github As Your Remote Renaming the Remote Repo on Github.Go to your local repository directory (i.e., open a command prompt and change to the repository's directory).Follow the host's instructions to rename the project (will differ from host to host, but usually Settings is a good starting point).


Rename the displayed name (for example, shown by gitweb):

There are various possible interpretations of what is meant by renaming a Git repository: the displayed name, the repository directory, or the remote repository name.
