Last active
April 5, 2019 04:28
-
-
Save mengjiann/42402d120c044d8b05148f38933c67e8 to your computer and use it in GitHub Desktop.
Git Command
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
# Add a new tag | |
git tag -a "v1" -m "Rolled out new changes" | |
# Push tags to remote | |
git push --tags | |
# Remove tag | |
git tag -d v1 | |
# Remove tag from origin | |
git push --delete origin v1 | |
# Git remove branch | |
git branch -D to-delete-branch | |
# Git push remote branch | |
git push origin --delete to-delete-remote-branch | |
# Add remote origin | |
git remote add origin-github git@github.com:<....> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment