Skip to content

Instantly share code, notes, and snippets.

@gwwar
Last active July 3, 2017 23:27
Git Cheatsheet
# 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