Last active
July 3, 2017 23:27
Git Cheatsheet
This file contains hidden or 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 remote branch | |
git branch branchname | |
git checkout branchname | |
git push -u origin branchname | |
#add a tag | |
git tag -a tagname -m "your tag message" | |
git push origin tagname | |
# deleting a tag | |
git tag -d tagname | |
git push origin :refs/tags/tagname | |
# deleting a branch on origin | |
git push origin :branchname | |
# deleting a branch locally | |
git branch -d the_local_branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment