How to undo commit operation in SmartGit/Git

Mahesh Gulve picture Mahesh Gulve · Jul 5, 2016 · Viewed 16.7k times · Source

Want to undo commit operation in smart git. Accidently commited wrong code and now unable to recover that code.

Thanks in advance.

Answer

mstrap picture mstrap · Jul 5, 2016

In SmartGit, just invoke Local|Undo Last Commit; this will put your changes back to the Index. Now you may revert them partially or all together using Local|Discard.