Every time I read Merge branch 'origin/master' into master
, or Oops, forgot to commit changes
, in a Git history, I die a little inside.
Of course I know why it is bad to clutter your history with these types of commits. Mainly because I have worked with both horrible and clean histories, and clean histories are simply better to work with.
But I'm also having trouble coming up with concise and convincing arguments why it is a good thing to maintain a clean and readable history, especially when arguing with inexperienced Git users.
So: why Is it important to maintain a clean history in general? Under which circumstances is it especially important?
git bisect
.Ooops, forgot to commit changes
, on the other hand, is indeed a sign that the author should have rewritten their history to avoid cluttering the public history with a commit that won't compile/test successfully.git pull
when your local branch has diverged. a thing that is very typical and completely unnecessary.