Skip to content

Instantly share code, notes, and snippets.

Created August 1, 2022 13:53
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
# 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