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