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 🙏
Top comments (1)
Thx for this! This is really what I wanted. Helped A LOT.
Can I translate in Korean this article? If you don't mind, I wanna share this awesome information in Korean. Surely, There will be a link directing to this original one.
Some comments may only be visible to logged-in visitors. Sign in to view all comments. Some comments have been hidden by the post's author - find out more