📜  在 git commit 中重命名文件 - Shell-Bash 代码示例

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

代码示例1
> $ git mv css/iphone.css css/mobile.css
> $ git status
# On branch master
# Changes to be committed:
#   (use "git reset HEAD ..." to unstage)
#
#   renamed:    css/iphone.css -> css/mobile.css
#
# Changed but not updated:
#   (use "git add ..." to update what will be committed)
#   (use "git checkout -- ..." to discard changes in working directory)
#
#   modified:   index.html
#