Last active
March 19, 2017 09:38
-
-
Save hezhao/343af4c9dae7f264ac9afb8f38970d2c to your computer and use it in GitHub Desktop.
Git commands
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
# 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