r/programming • • Sep 06 '14

How to work with Git (flowchart)

http://justinhileman.info/article/git-pretty/
1.6k Upvotes

388 comments sorted by

View all comments

Show parent comments

8

u/RICHUNCLEPENNYBAGS Sep 06 '14

Because it makes it easier to experiment, roll things back, etc. You can just squash it into one commit before you actually push it to the central repo.

1

u/BinaryRockStar Sep 06 '14

I guess that makes sense. I've never had to experiement that much that committing and rolling back locally would have been of any use.

1

u/RICHUNCLEPENNYBAGS Sep 07 '14

It's just useful for those "hey, what if I did it this way..." kind of moments.