Skip to content

Instantly share code, notes, and snippets.

@mengjiann
Last active April 5, 2019 04:28
Show Gist options
  • Save mengjiann/42402d120c044d8b05148f38933c67e8 to your computer and use it in GitHub Desktop.
Save mengjiann/42402d120c044d8b05148f38933c67e8 to your computer and use it in GitHub Desktop.
Git Command
# 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