Created
November 17, 2015 20:31
-
-
Save sideshowcoder/b28d09fe1a2fded8bf70 to your computer and use it in GitHub Desktop.
my aliases
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
| [alias] | |
| a = add | |
| ac = add -p | |
| c = commit | |
| co = checkout | |
| p = push | |
| pr = pull-request | |
| s = status | |
| serve = daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/ | |
| l = log --oneline | |
| lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
| ec = config --global -e | |
| up = !git pull --rebase --prune $@ && git submodule update --init --recursive | |
| cob = checkout -b | |
| cm = !git add -A && git commit -m | |
| wip = !git add -A && git commit -m "WIP" | |
| undo = reset HEAD~1 --mixed | |
| wipe = !git add -A && git commit -qm "WIPE SAVEPOINT" && git reset HEAD~1 --hard | |
| bclean = "!f() { branches=$(git branch --merged ${1-master} | grep -v " ${1-master}$"); [ -z \"$branches\" ] || git branch -d $branches; }; f" | |
| bdone = "!f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment