如何在SmartGit/Git中撤消提交操作

Mah*_*lve 11 git smartgit

想在智能git中撤消提交操作.无意中提交了错误的代码,现在无法恢复该代码.

提前致谢.

mst*_*rap 28

在SmartGit中,只需调用Local | Undo Last Commit ; 这会将您的更改返回到索引.现在,您可以使用Local | Discard将它们部分或全部还原.