2017年7月24日 星期一

Rename a directory in a Git repository

Reference:

https://stackoverflow.com/questions/11183788/in-a-git-repository-how-to-properly-rename-a-directory

Command:

git mv <old name> <new name>

Example:
Rename the directory from source to target

git mv source tmp
git mv tmp target

沒有留言: