rename repo
2020-11-01 本文已影响0人
yuerxiaoshui
- Rename the displayed name (e.g., shown by gitweb):
- Edit .git/description to contain the repository's name
- Save the file
- Rename the directory which contains the repository:
This is just like rename a file, it is easy. - Rename remote repository:
- Go to the remote host (e.g., https://github.com/User/project)
- Rename repository in Settings
- Go to local repository directory
- Copy the repository URL from Github (e.g., https://github.com/User/project.git)
- set the new URL using git:
git remote set-url origin https://github.com/User/project.git