Skip to content

Instantly share code, notes, and snippets.

@danguilherme
Created April 26, 2015 04:34
Show Gist options
  • Save danguilherme/df6846381709cf475df4 to your computer and use it in GitHub Desktop.
Save danguilherme/df6846381709cf475df4 to your computer and use it in GitHub Desktop.
Git commands cheat sheet
# BRANCHES
git branch # list all local branches
git branch -a # list all branches (local and remote)
# Clone remote branches - http://stackoverflow.com/a/72156/1574059
git checkout -b branch-name origin/branch-name # create local branch and set it to track origin/branch-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment