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