Created
April 26, 2015 04:34
-
-
Save danguilherme/df6846381709cf475df4 to your computer and use it in GitHub Desktop.
Git commands cheat sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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