-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
56 lines (55 loc) · 1.38 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
[user]
name = Thomas Larrieu
email = [email protected]
[credential]
helper = cache
[color]
ui = auto
status = auto
diff = auto
[init]
defaultBranch = master
[push]
default = current
[difftool]
prompt = true
[difftool.nvim]
cmd = nvim -d $LOCAL $REMOTE
[core]
editor = nvim
excludesFile = /home/tlarrieu/.gitignore
[pull]
ff = only
[branch]
committerdate = true
[alias]
bclean = "!git branch --no-contains master --format='%(refname:short)' --merged master | xargs --no-run-if-empty git branch -d"
br = branch
ci = commit
co = checkout
cp = cherry-pick
d = diff --word-diff
ds = d --staged
ft = fetch
llg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lg = llg --first-parent
patch = diff --word-diff=none
r = rebase
rc = rebase --continue
s = status -s -b
sh = show -s --pretty=format:'%Cred%h %C(blue)(^ %p)%C(yellow)%d%n%C(bold blue)<%an>%Creset %Cgreen(%cr) %Creset%Creset: %s%Creset%+b %n'
sl = stash list -p
st = stash
sp = stash pop
sync = fetch --all --prune --tags
wip = commit -m "WIP"
wtf = "!git config --list --show-origin | \
grep -v alias.wtf | \
sed 's#file:/home/.*/.gitconfig#global#' | \
sed 's#file:.git/config#project#' | \
grep 'alias.' | \
sed 's/alias.//' | \
sed 's/=/ø/' | \
column -s 'ø' -t | \
sed 's/^\\(.\\)/ \\1/'"
# vim: ft=gitconfig