{ GIT snippets }

Cory House ?

Cory House ? @housecor

Git tip: Have a lot of old branches on your machine? Here's a Bash script that removes local branches that are no longer remote: git fetch -p && for branch in `git branch -vv --no-color | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done

GIT
Dan Abramov

Dan Abramov @dan_abramov

Merge vs rebase tradeoff: Merge: “Tell me your version of the story, I’ll tell you mine, and then we’ll try to piece something together out of them” Rebase: “Tell me your version of the story, and I will interrupt your every sentence to tell you where you’re wrong”

GIT
Monica Dinculescu

Monica Dinculescu @notwaldorf

? Protip: did you know you can `git clone` GitHub gists, like you would any other repo? And then `git push` anything to them! ?

GIT
Jason McCreary

Jason McCreary @gonedark

⚡️ Git matches branches by name. If your reference are up-to-date, you can save some keystrokes when checking out remote branches. https://t.co/St6iuEYu7c

GIT