如何撤消上次提交
我做了以下评论
git add /file1/path git rm /file/path git commit -m "message" 我如何撤消我最后一次提交使用Git?
就像我不想提交这些文件一样。
你想做:
 git reset HEAD~ 
如果你不想要这些改变,把所有的东西都吹走,
 git reset --hard HEAD~ 
我做了以下评论
git add /file1/path git rm /file/path git commit -m "message" 我如何撤消我最后一次提交使用Git?
就像我不想提交这些文件一样。
你想做:
 git reset HEAD~ 
如果你不想要这些改变,把所有的东西都吹走,
 git reset --hard HEAD~