Search code examples
gitsmartgit

How to undo commit operation in SmartGit/Git


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

Thanks in advance.


Solution

  • 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.