Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
80 lines (79 sloc) 2.45 KB
[user]
name = chriszarate
email = chris@zarate.org
[core]
excludesfile = ~/.gitignore_global
editor = vim +start
compression = 0
pager = diff-so-fancy | less --tabs=4 -RFX
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[init]
templatedir = ~/.git_template
[interactive]
#diffFilter = diff-so-fancy --patch-mode | less --tabs=4 -RFX
[alias]
a = add --patch
aa = add
af = "!git ls-files -m -o --exclude-standard | fzf-tmux --preview 'git diff --color=always {}' --print0 -m | xargs -0 -t -o git add"
b = branch
bc = "!git symbolic-ref --short HEAD | tr -d '\\n'"
bd = "!git for-each-ref --count=30 --sort=-committerdate refs/heads/ --format='%(refname:short)' | fzf-tmux --no-hscroll --no-multi --ansi --preview 'git --no-pager log -50 --pretty=format:\"%h %an (%ar) %s\" {}' --print0 | xargs -0 -t -o git checkout"
c = commit
ca = commit --amend
cc = "!git log --pretty=format:'%h' -n 1"
ccl = "!git rev-parse HEAD | tr -d '\\n'"
co = checkout
cob = checkout -b
cot = !sh -c 'git checkout -t origin/'$1'' -
cp = cherry-pick
d = diff
dc = diff --cached
dw = diff -w
f = fetch
fp = pull --ff-only
l = log --oneline --graph
la = log --stat --branches --not --remotes
ll = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lp = log -p
p = pull
pu = push
r = rebase
ra = rebase --abort
rc = rebase --continue
ri = rebase --interactive
rs = rebase --skip
s = status --short --branch
sh = show
st = stash
stl = "!git stash list --pretty='%C(yellow)%gd %<(14)%Cgreen%cr %C(blue)%gs' | fzf-tmux --ansi --no-multi --preview 'git stash show --color=always -p {1}' | cut -f 1 -d ' ' | xargs -t -o git stash branch stash-$(date +%Y%m%d%H%M)"
stp = stash pop
stu = stash -u
su = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
w = !sh -c 'git log -S'$1' -p' -
[color]
status = auto
ui = true
[color "diff"]
meta = yellow bold
commit = green bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "status"]
added = green
changed = yellow
deleted = red
untracked = magenta
[pack]
windowMemory = 10m
packSizeLimit = 20m
[diff]
algorithm = patience
You can’t perform that action at this time.