{ GIT snippets }

Tim MacDonald

Tim MacDonald @timacdonald87

👨‍🔧 Finally got sick of seeing this error when pushing new branches. Turns out a simple config option allows `git push` to do the heavy lifting. Why is this not the default?! Do yourself a favour 👇 https://t.co/hBJa5JJbIm

GIT
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