-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
45 lines (45 loc) · 1.28 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
# set your user tokens as environment variables, such as ~/.secrets
# See the README for examples.
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red
new = green
[alias]
#via http://stackoverflow.com/questions/5188320/how-can-i-get-a-list-of-git-branches-ordered-by-most-recent-commit
recent-branches = !git for-each-ref --count=10 --sort=-committerdate refs/heads/ --format='%(refname:short)'
[push]
# 'git push' will push the current branch to its tracking branch
# the usual default is to push all branches
default = current
[core]
autocrlf = false
editor = nvim
# to make IO-intensive commands like `git status` faster on NFS
# http://stackoverflow.com/a/4995189
preloadindex = true
excludesfile = ~/.gitignore_global
[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
algorithm = patience
[rerere]
# Remember my merges
# http://gitfu.wordpress.com/2008/04/20/git-rerere-rereremember-what-you-did-last-time/
enabled = true
[user]
email = [email protected]
name = Jonathan Mohrbacher
[pull]
rebase = true
[credential]
helper = store
[init]
defaultBranch = main