Sometimes when you've committed your work - you instantly remember, that you forgot something.
- You didn't add all the files!
- You didn't put in the right commit message
- you're simply not done.
- ...
It would be nice to have command git undo you could run to undo the most recent commit.
Go and investigate what git command can help you to achieve this and then add the undo alias to the .gitignore file you created for your team.
undothat reverts the most recent commit?undoa commit that is already pushed to GitHub?undoa commit that isn't your own?Sometimes when you've committed your work - you instantly remember, that you forgot something.
It would be nice to have command
git undoyou could run to undo the most recent commit.Go and investigate what git command can help you to achieve this and then add the
undoalias to the.gitignorefile you created for your team.