Skip to content

Instantly share code, notes, and snippets.

@abhishekdgeek
Created May 6, 2016 04:09
Show Gist options
  • Save abhishekdgeek/9c9c61206b44301481e36b00748fa6e2 to your computer and use it in GitHub Desktop.
Save abhishekdgeek/9c9c61206b44301481e36b00748fa6e2 to your computer and use it in GitHub Desktop.
https://training.github.com/kit/downloads/github-git-cheat-sheet.pdf
http://rogerdudler.github.io/git-guide/
Fetch and Pull all remote branches.
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment