How do I add a file to the last local commit?
This question already has an answer here:
You are basically trying to change your last commit in Git. This is possible and quite simple.
git commit --amend
is used for this purpose.
The following page gives a detailed example.
https://github.com/abhikp/git-test/wiki/Changing-your-last-commit
链接地址: http://www.djcxy.com/p/1410.html上一篇: 在git中修改过去提交的提交消息
下一篇: 如何将文件添加到最后的本地提交?