Skip to content

Instantly share code, notes, and snippets.

@hezhao hezhao/
Last active Mar 19, 2017

What would you like to do?
Git commands
# Create a new branch locally
$ git checkout -b [branch]
# Create and push the new branch to orign
$ git push origin [branch]
# Merge branch to master
$ git checkout master
$ git merge [branch]
# Remove remote branch
$ git push origin --delete [branch]
# Update tags
$ git tag -d <tagname>
$ git tag -f -a v0.1
$ git push -f --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.