Created
July 24, 2018 09:46
-
-
Save rkkautsar/f91ab6966b47727d50d3f31bbf908738 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function current_branch | |
git rev-parse --abbrev-ref HEAD | |
end | |
abbr -a g "git" | |
abbr -a gst "git status" | |
abbr -a ga "git add" | |
abbr -a gaa "git add --all" | |
abbr -a gco "git checkout" | |
abbr -a gcob "git checkout -b" | |
abbr -a gd "git diff" | |
abbr -a gdl "git diff HEAD~" | |
abbr -a gdm "git diff master" | |
abbr -a gro "git reset --soft origin/(current_branch)" | |
abbr -a gro! "git reset --hard origin/(current_branch)" | |
abbr -a glg "git log --oneline" | |
abbr -a glog "git log --graph --decorate --all" | |
abbr -a gc "git commit --verbose" | |
abbr -a gca "git commit --verbose --add" | |
abbr -a gc! "git commit --verbose --amend" | |
abbr -a gp "git push" | |
abbr -a ggpush "git push origin (current_branch)" | |
abbr -a gpu "git pull" | |
abbr -a ggpull "git pull origin (current_branch)" | |
abbr -a gup "git pull --rebase" | |
abbr -a ggup "git pull origin (current_branch) --rebase" | |
abbr -a gr "git rebase" | |
abbr -a grba "git rebase --abort" | |
abbr -a grbs "git rebase --skip" | |
abbr -a grbc "git rebase --continue" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment