Squash your git commits for a clean history
Commit early and commit often. But when you are done with your feature, you can combine the commits into a single commit (or a few if that makes more sense to your history).
This allows you to get rid of minor fix commits from your git history.
http://blog.steveklabnik.com/posts/2012-11-08-how-to-squash-commits-in-a-github-pull-request
Written by Einar Jonsson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#History
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#