-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
86 lines (70 loc) · 1.9 KB
/
gitconfig
File metadata and controls
86 lines (70 loc) · 1.9 KB
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
78
79
80
81
82
83
84
85
86
[user]
name = Ramanan Sivaranjan
email = ramanan@funkaoshi.com
[alias]
co = checkout
ci = commit
br = branch
st = status -sb -uno
rpo = remote prune origin
rmo = push origin --delete
rmbr = branch -d
# display the local branches in a pretty format
b = "branch --format='%(color:#cccc00)%(objectname:short) %(color:red)%(committerdate:short) %(color:bold white)%(refname:short)'"
# displays the commit history "graphically"
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
# tidier short log
slog = log --pretty=oneline --decorate --abbrev-commit
# look at the commits in commit order, for code reviews
review = log -p --reverse --no-merges
# host local .git repo to share commits
serve = daemon --export-all --base-path=. --reuseaddr --informative-errors --verbose
quickserve = daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/
[core]
editor = vim
excludesfile = ~/.gitexcludes
# clean up line endings
autocrlf = input
[init]
defaultBranch = develop
[color]
diff = auto
status = auto
branch = auto
[pretty]
slog = "%Cred %h %Creset%s%Cblue — %an "
[branch]
sort = -committerdate
[tag]
sort = version:refname
[diff]
algorithm = histogram
colorMoved = plain
mnemonicPrefix = true
renames = true
[rerere]
enabled = true
autoupdate = true
[merge]
# I hate merge commits
ff = only
[pull]
ff = only
[fetch]
prune = true
all = true
# This makes it impossible to create a tag locally
# pruneTags = true
[push]
default = current
autoSetupRemote = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[credential]
helper = store