-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
77 lines (72 loc) · 2.19 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
76
77
[user]
email = [email protected]
name = Cédric de Saint Martin
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF8TvUI0Vyee9ktlfESoyqzZetiLJQg0/yt1dgtRrOJc [email protected]
[core]
editor = vim
autocrlf = input
excludesfile = ~/.gitignore_global
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[merge]
tool = FileMerge
#mergetool.FileMerge.cmd = '/Developer/Applications/Utilities/FileMerge.app/Contents/MacOS/ "$BASE" "$LOCAL" "$REMOTE" "$MERGED"'
[color "diff"]
whitespace = red reverse
[alias]
switch = !legit switch \"$@\"
branches = !legit branches
sprout = !legit sprout \"$@\"
unpublish = !legit unpublish \"$@\"
harvest = !legit harvest \"$@\"
sync = !legit sync \"$@\"
publish = !legit publish \"$@\"
graft = !legit graft \"$@\"
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
st = status
ci = commit
br = branch
co = checkout
df = diff
dc = diff --cached
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
fixup = !git log -n 50 --pretty=format:'%h %s' --no-merges | fzf | cut -c -7 | xargs git commit --fixup
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
automr = push -o merge_request.create -o merge_request.merge_when_pipeline_succeeds -o merge_request.remove_source_branch -u origin HEAD
pf = push -f -u origin HEAD
[filter "media"]
clean = git media clean %f
smudge = git media smudge %f
required = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[help]
autocorrect = 8
[rebase]
autosquash = true
[diff]
colorMoved = zebra
[protocol]
version = 2
[credential]
helper = osxkeychain
[commit]
gpgsign = true
[gpg]
format = ssh