-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig
57 lines (46 loc) · 1.31 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
[user]
name = Vincent Jousse
email = [email protected]
[color]
ui = true
[color "diff"]
whitespace = red reverse
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[web]
browser = firefox
[push]
# 'git push' will push the current branch to its tracking branch
# the usual default is to push all branches
default = tracking
autoSetupRemote = true
[apply]
whitespace = nowarn
[branch]
autosetupmerge = true
[diff]
# Git diff will use (i)ndex, (w)ork tree, (c)ommit and (o)bject
# instead of a/b/c/d as prefixes for patches
mnemonicprefix = true
[alias]
changelog = "!f() { r=${1:-`git describe --tags --abbrev=0`..HEAD}; echo Changelog for $r; git log --reverse --no-merges --format='* %s' $r; }; f"
fixup = "!git log --oneline --no-decorate --no-merges | fzf -0 --preview 'git show --color=always --format=oneline {1}' | awk '{print $1}' | xargs -r git commit --fixup"
pfl = push --force-with-lease
[pull]
rebase = false
[init]
defaultBranch = main
[sendemail]
smtpserver = smtp.fastmail.com
smtpuser = [email protected]
smtpencryption = ssl
smtpserverport = 465
[credential]
helper = store
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f