Skip to content
Permalink
main
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
[alias]
a = add --patch
aa = add
af = "!git ls-files -m -o --exclude-standard | fzf --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 --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
cop = checkout --patch
cot = !sh -c 'git checkout -t origin/'$1'' -
cp = cherry-pick
d = diff
dc = diff --cached
ds = "!git diff --stat $(git merge-base HEAD master)"
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
puf = push --force
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 --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 "status"]
added = green
changed = yellow
deleted = red
untracked = magenta
[commit]
gpgsign = true
[core]
excludesfile = ~/.gitignore_global
editor = vim +start
compression = 0
pager = delta --theme=gruvbox
[diff]
algorithm = patience
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[gpg]
program = gpg2
[init]
defaultBranch = main
[interactive]
diffFilter = delta --color-only --theme=gruvbox
[pack]
windowMemory = 10m
packSizeLimit = 20m
[url "git@github.com:"]
insteadOf = https://github.com/
[user]
name = chriszarate
email = chris.zarate@automattic.com
signingkey = AF7D9D6F1994A742D6D12E2C839E1F045D04B581
[includeIf "gitdir:/Users/zzz/**/.git"]
path = ~/.dotfiles/git/gitconfig.personal