Skip to content

Instantly share code, notes, and snippets.

@sulram
Last active August 29, 2015 14:27
Show Gist options
  • Save sulram/f0cbfe478cef1dae5c5e to your computer and use it in GitHub Desktop.
Save sulram/f0cbfe478cef1dae5c5e to your computer and use it in GitHub Desktop.

get new remote branch

# fetch all
git fetch origin

# list all
git branch -v -a

# checkout and track new branch
git checkout -b test origin/test

show network with all branches

gitk --all

push a new local branch to a remote repo

git push -u origin test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment