-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
75 lines (75 loc) · 1.78 KB
/
gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[core]
excludesfile = ~/.gitignore_global
editor = vim
pager = delta
[user]
name = Robin Clowers
email = robin.clowers@gmail.com
[merge]
tool = p4merge
[diff]
tool = p4merge
compactionHeuristic = true
[color]
ui = auto
[format]
pretty=format:%C(yellow)%h%Creset -%C(red)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset
[push]
default = upstream
autoSetupRemote = true
recurseSubmodules = check
[rerere]
enabled = true
[alias]
ai = !git add $(git status --short | fzf -m | awk '{print $2}')
ci = commit
co = grepcheckout
pre = pull --rebase
st = status
m = merge --no-ff
di = diff
dc = diff --cached
amend = commit --amend
aa = add --all .
head = !git l -1
h = !git head
r = !git l -20
ff = merge --ff-only
pullff = pull --ff-only
noff = merge --no-ff
l = log --graph --abbrev-commit --date=relative
la = !git l --all
div = divergence
fa = fetch --all
pom = push origin master
b = branch
br = for-each-ref --sort=committerdate refs/heads/ --format='%(align:30,left)%(HEAD) %(refname:short)%(end) %(color:magenta)(%(committerdate:relative))'
ds = diff --stat=160,120
dh1 = diff HEAD~1
sh = !git log --format=%B -n 1
ra = rebase --autosquash -i
fix = commit --fixup
noskip = "!git skips | xargs git update-index --no-skip-worktree"
skip = update-index --skip-worktree
skips = "!git ls-files -v | awk '/^S/{ print $2 }'"
sl = show --name-status
sha = "!git rev-list HEAD | head -1"
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[interactive]
diffFilter = delta --color-only
[init]
defaultBranch = main
[delta]
navigate = true # use n and N to move between diff sections
light = false
file-style = bold brightgreen ul
[submodule]
recurse = true
[rebase]
updateRefs = true
[fetch]
prune = true