Want to undo commit operation in smart git. Accidently commited wrong code and now unable to recover that code.
Thanks in advance.
Want to undo commit operation in smart git. Accidently commited wrong code and now unable to recover that code.
Thanks in advance.
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.
The actual commit
command can be undone by git reset --soft @~
please watch this topic : smartgit delete commit and return to previous commit
as the answer said, it's not specific to smartgit but git in general. You just have to rollback to the previous commit, create another branch and work on it !
Be careful with your following commits :)
© 2022 - 2024 — McMap. All rights reserved.