git 随笔

131 阅读1分钟

Git撤销本地commit

解决

git reset HEAD~

HEAD 代表:上一次提交

这样 刚刚提交的就又回到本地的local changes 列表中。