2019-06-14 git重命名文件
作者:
张大志的博客 | 来源:发表于
2019-06-14 14:34 被阅读0次[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 <file>..." 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 <307509855@qq.com>
Date: Fri Jun 14 14:31:36 2019 +0800
mv readme.txt readme.md
commit 72bf4683bc7f8405f0ab3c976b62abffe4b487b4
Author: eagle <307509855@qq.com>
Date: Fri Jun 14 14:29:20 2019 +0800
add readme.txt
本文标题:2019-06-14 git重命名文件
本文链接:https://www.haomeiwen.com/subject/amtpfctx.html
网友评论