Skip to content

Instantly share code, notes, and snippets.

@ruddra
Created August 1, 2022 13:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ruddra/049050ecfea50752b5d45800a44b9d73 to your computer and use it in GitHub Desktop.
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