If you find an error in your last commit, you can simply confirm the last commit with
git commit
But if you have committed yet another commit, how do you resubmit the commit before that?
Note: I assume that you know that you should only use it --amendif you are sure that no other developer has used your upstream file.
source
share