Files
dotfiles/git/gitconfig

57 lines
1.5 KiB
Plaintext

[diff]
[color]
ui = auto
[alias]
st = status
bi = bisect
ci = commit
co = checkout
fu = commit --fixup
cp = cherry-pick
di = diff
dc = diff --cached
amend = commit --amend
aa = add --all
ff = merge --ff-only
pullff = pull --ff-only
noff = merge --no-ff
div = divergence
gn = goodness
gnc = goodness --cached
fa = fetch --all
pom = push origin master
b = branch
ds = diff --stat=160,120
dh1 = diff HEAD~1
head = !git l -1
h = !git head
hs = !git head --show-signature
r = !git l -30
ra = !git r --all
rs = !git log --oneline --show-signature
l = "!source ~/.githelpers && pretty_git_log"
la = !git l --all
sync = "!source ~/.githelpers && sync_to_remote"
bsync = "!source ~/.githelpers && update_branch"
bp = !git backport
backport = "!source ~/.githelpers && backport_pr"
track = "!source ~/.githelpers && track_remote"
sign = "!git commit -S --amend --no-edit"
todo = grep --heading --break --ignore-case -e ' FIX: *' -e ' TODO: *'
pr = "!source ~/.githelpers && get_pr"
prd = "!source ~/.githelpers && del_pr"
brc = "!source ~/.githelpers && clean_branches"
lbr = for-each-ref --sort='-committerdate:iso8601' --format=' %(committerdate:iso8601)%09%(refname)' refs/heads
[merge]
tool = vimdiff
ff = true
[push]
default = current
followTags = true
[branch]
autosetuprebase = always
[rebase]
autosquash = true