📜  如何在 GIT 中重命名或移动文件 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:50.288000             🧑  作者: Mango

代码示例1
# Short answer:
git mv filename new_filename
or
git mv /path/to/file_location /path/to/new/file_location

# Note, if you manually move a file or rename it (w/o git mv) git may
#     treat the moved/renamed file as a new file 
# Note, it's fairly popular to use the alias gm for git mv