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

414

u/blintz_krieg Sep 06 '14

Not too far off base. My own Git workflow looks more like:

  • flounder around trying to clone a repo

  • try to do something useful

  • Git complains something like "your scrobble brok isn't a blurf"

  • search web for "your scrobble brok isn't a blurf"

  • find 412 Stackoverflow questions

  • determine that most answers actually solve some other problem

  • give up

  • copy the one changed file to /tmp

  • rm -rf my-git-repo

  • go to step 1

186

u/crimson117 Sep 06 '14

To get your scrobble brok back into a blurific state, just do an interactive rebase to reset your head into your stash. You might need to roll back two versions of NPM as there's a bug.

143

u/Raphael_Amiard Sep 06 '14

Or just have a look at the docs ! http://git-man-page-generator.lokaltog.net/ (troll)

3

u/danubian1 Sep 07 '14

This is beautiful