Skip to content

Instantly share code, notes, and snippets.

@maximromanyuk
Created April 7, 2017 07:32
Show Gist options
  • Save maximromanyuk/e4f097f8044e30a648c4b8fab7d0e910 to your computer and use it in GitHub Desktop.
Save maximromanyuk/e4f097f8044e30a648c4b8fab7d0e910 to your computer and use it in GitHub Desktop.
My .gitconfig
[user]
email = no.one.coin@gmail.com
name = CandyOgre
[push]
default = current
[alias]
st = status
co = checkout
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
cob = checkout -b
lg = log --graph --pretty=format:'%C(bold)%h%Creset%C(magenta)%d%Creset %s %C(yellow)<%an> %C(cyan)(%cr)%Creset' --abbrev-commit --date=relative
cm = !git add -A && git commit -m
save = !git add -A && git commit -m 'SAVEPOINT'
amend = commit -a --amend
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