Skip to content

Instantly share code, notes, and snippets.

@edelans
Last active January 5, 2018 11:06
Show Gist options
  • Save edelans/8b3a23678cccf3705e3a to your computer and use it in GitHub Desktop.
Save edelans/8b3a23678cccf3705e3a to your computer and use it in GitHub Desktop.
alias git
[user]
email = edelans@gmail.com
name = edelans
[merge]
tool = meld
conflictstyle = diff3
[alias]
st = status
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
pu = push
co = checkout
br = checkout -b
ap = add -p
cm = commit -m
am = commit --amend
fuck = !git stash && git reset --hard
lg = log --graph --oneline --decorate --pretty=format:'%C(yellow)%h%Creset -%C(bold yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
conf = config --global -e
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"
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = red
[core]
editor = atom
whitespace = trailing-space,space-before-tab
[apply]
whitespace = fix
[rerere]
enabled = 1
autoupdate = 1
[push]
default = simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment