kea-dev / social-coding

https://docs.kea.dev/posts/social-coding/
0 stars 1 forks source link

Add an alias to undo a commit #8

Open lakruzz opened 1 year ago

lakruzz commented 1 year ago

Sometimes when you've committed your work - you instantly remember, that you forgot something.

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.

lakruzz commented 1 year ago
Next level! [Dig this1](https://stackoverflow.com/questions/2221658/whats-the-difference-between-head-and-head-in-git)