Created
August 1, 2022 13:53
-
-
Save ruddra/049050ecfea50752b5d45800a44b9d73 to your computer and use it in GitHub Desktop.
Git commands
This file contains 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
# 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