2019-06-14 git重命名文件

[root@VM_0_3_centos project]# git mv readme.txt readme.md  #重命名文件
[root@VM_0_3_centos project]# git status
# On branch master
# Changes to be committed:
#   (use "git reset HEAD ..." to unstage)
#
#   renamed:    readme.txt -> readme.md
#
[root@VM_0_3_centos project]# git commit -m "mv readme.txt readme.md"  #提交到工作目录
[root@VM_0_3_centos project]# git log
commit 936700dcbe822af203e0b22644353c948b60e52f
Author: eagle <[email protected]>
Date:   Fri Jun 14 14:31:36 2019 +0800

    mv readme.txt readme.md

commit 72bf4683bc7f8405f0ab3c976b62abffe4b487b4
Author: eagle <[email protected]>
Date:   Fri Jun 14 14:29:20 2019 +0800

    add readme.txt

你可能感兴趣的:(2019-06-14 git重命名文件)