Skip to content

Instantly share code, notes, and snippets.

@sideshowcoder
Created November 17, 2015 20:31
Show Gist options
  • Select an option

  • Save sideshowcoder/b28d09fe1a2fded8bf70 to your computer and use it in GitHub Desktop.

Select an option

Save sideshowcoder/b28d09fe1a2fded8bf70 to your computer and use it in GitHub Desktop.
my aliases
[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