Skip to content
Discussion options

You must be logged in to vote

Just use this command in your terminal:

git reset --soft HEAD~1 

NOTES:
--soft keeps your changes staged (ready to commit again).
HEAD~1 means “the last commit.” and HEAD~2 means the commit before the last one

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by sherqo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@itsahmadawais
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants