Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Git commands cheat sheet
git branch # list all local branches
git branch -a # list all branches (local and remote)
# Clone remote branches -
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