Skip to content

Instantly share code, notes, and snippets.

@bruzed
Created December 6, 2011 15:12
Show Gist options
  • Save bruzed/1438513 to your computer and use it in GitHub Desktop.
Save bruzed/1438513 to your computer and use it in GitHub Desktop.
git commands
#display hidden branches
$ git branch -a
#checkout a branch
$ git checkout -b <branch-name> origin/<branch-name>
#tags
$ git tag -a 1.3.6.2 -m "bump version number"
$ git push --tags
#delete remote branch
$ git push origin --delete branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment