50 git short commands you should know which pro uses... 😉
Anmol Raj
Posted on August 4, 2021
Here's 50 git commands for better productivity in your work.
Git Cheat Sheet codes
g
– gitgst
– git statusgl
– git pullgup
– git pull --rebasegp
– git pushgd
– git diffgdc
– git diff --cachedgdv
– git diff -w "$@" | view -gc
– git commit -vgc!
– git commit -v --amendgca
– git commit -v -agca!
– git commit -v -a --amend`gcmsg – git commit -m
gco
– git checkoutgcm
– git checkout mastergr
– git remotegrv
– git remote -vgrmv
– git remote renamegrrm
– git remote removegsetr
– git remote set-urlgrup
– git remote updategrbi
– git rebase -igrbc
– git rebase --continuegrba
– git rebase --abortgb
– git branchgba
– git branch -agcount
– git shortlog -sngcl
– git config --listgcp
– git cherry-pickglg
– git log --stat --max-count=10glgg
– git log --graph --max-count=10glgga
– git log --graph --decorate --allglo
– git log --oneline --decorate --colorglog
– git log --oneline --decorate --color --graphgss
– git status -sga
– git addgm
– git mergegrh
– git reset HEADgrhh
– git reset HEAD --hardgclean
– git reset --hard && git clean -dfxgwc
– git whatchanged -p --abbrev-commit --pretty=mediumgsts
– git stash show --textgsta
– git stashgstp
– git stash popgstd
– git stash dropggpull
– git pull origin $(current_branch)ggpur
– git pull --rebase origin $(current_branch)ggpush
– git push origin $(current_branch)ggpnp
– git pull origin $(current_branch) && git push origin $(current_branch)glp
– _git_log_prettily
If i forgot something please write in comment. i appreciate your effort. Thanks 🙏
Posted on August 4, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.