How do I undo my last commit?
Change it, or take it apart — and which you want depends on whether you have pushed.
There are two different things people mean, and they have different answers.
“The commit is right, one detail is wrong”
Amend it. The button under the commit message field shows a preview of what the amended commit would contain — the old message against the new, and the files on both sides — and replaces the commit when you confirm. Leave the message field empty and the existing message is kept.
“The commit should not exist”
A hard reset to the commit before it. Innesta previews what would change, asks for a typed confirmation, and takes a restore backup first — so this is recoverable from Recovery for as long as the backup is kept, which is seven days unless you have changed it.
Whether your changes survive in the working copy depends on which reset you choose; the preview says what will happen before you agree to it.