Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Git commands
# Git fetch/reset
git fetch origin
git reset --hard origin/master
# Git push
git push origin master
# Git rebase
git rebase origin/master
# Git branch
git checkout -b develop
# git add
git add filename.py
# Git commit
git commit -m "new commit"
# Git tag
git tag -a v1.4 -m "my version 1.4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment