forestgeo / learn

Links to interesting articles, videos, tutorials, tips, and more
5 stars 8 forks source link

How (and why!) to keep your Git commit history clean #199

Open maurolepore opened 5 years ago

maurolepore commented 5 years ago

https://about.gitlab.com/2018/06/07/keeping-git-commit-history-clean/

amend, rebase, apply, diff ...

Situation 1: I need to change the most recent commit Situation 2: I need to change a specific commit Situation 3: I need to add, remove, or combine commits Situation 4: My commit history doesn't make sense, I need a fresh start!