除了常用的 git push, git pull, git status 外,还有一个命令也是比较比较常用的 git commit
只更新上一次的提交的内容
git commit --amend --no-edit
其中
git commit --amend:表示对最近一次提交进行修改
--no-edit:表示不编辑提交消息
只更新上一次的提交的消息
git commit --amend --message="xxxx"
上面 --no-edit 是只更新代码内容,这里的 --message 是 只更新提交的消息