Created
July 26, 2017 07:47
-
-
Save wachulski/b3a7b6db1e695134843734afab5a0beb 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
[alias] | |
o = checkout | |
a = add | |
c = commit --verbose | |
ca = commit -a --verbose | |
s = status | |
b = branch | |
b-list = remote show origin | |
b-list2 = branch -r -v -a | |
b-refresh = remote prune origin | |
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short | |
type = cat-file -t | |
dump = cat-file -p | |
rs-hard = reset --hard | |
pl = pull | |
pl-rb = pull --rebase | |
ph = push | |
cl-untracked = clean -f -d | |
cl-ignored = clean -f -X | |
del = branch -d | |
del-origin = push origin --delete | |
ignored-all = !git ls-files -v | grep^[[:lower:]] | |
ec = config --global -e | |
up = !git pull --rebase --prune $@ && git submodule update --init --recursive | |
cob = checkout -b | |
cm = !git add -A && git commit -m | |
save = !git add -A && git commit -m 'SAVEPOINT' | |
wip = !git add -u && git commit -mWIP | |
undo = reset HEAD~1 --mixed | |
amend = commit -a --amend | |
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard | |
bclean = "!f() { git branch --merged ${1-master} | grep -v ${1-master}$ | xargs -r git branch -d; }; 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