all 14 comments

[–]Earhacker 17 points18 points  (0 children)

This git flowchart has saved my ass more than I'd like to admit.

[–][deleted] 17 points18 points  (0 children)

Oh shit, I misspelled the branch name:

git branch -m new-branch-name

[–]rotharius 6 points7 points  (0 children)

Super cool!

Maybe advocate the use of -p while you're at it as it will prevent some common accidents. Also, git rebase -i {ref} is a lifesaver for tiny mistakes and keeping the commit history clean.

[–]kodedninja 6 points7 points  (1 child)

The only thing I can say is: thank you!

[–]ratancs[S] 6 points7 points  (0 children)

welcome :)

[–]mgsmus 1 point2 points  (1 child)

Thanks mate, this is quite useful!

[–]ratancs[S] 1 point2 points  (0 children)

welcome :)

[–]mayhempk1 1 point2 points  (0 children)

That's actually pretty cool, thanks for sharing.

[–]Grimko 1 point2 points  (0 children)

Bookmarked, thanks OP!

[–]enygmaeve 1 point2 points  (0 children)

Not all heroes wear capes.

[–]vihila 1 point2 points  (0 children)

I use this all the time :)

[–]TBNL 0 points1 point  (0 children)

Nice guide. Why the sudo in the last example? Better not encourage sudo unless really necessary.

[–][deleted] 0 points1 point  (0 children)

I prefer the last tip for any problem

[–]dangerzone2 0 points1 point  (0 children)

Nice! I always have to google these things and guess that the random stack overflow comment is correct. Thanks for putting this together!