-
Notifications
You must be signed in to change notification settings - Fork 27
/
gitconfig
86 lines (86 loc) · 2.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
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 = ${name}
email = ${email}
[github]
user = ${github_username}
[alias]
co = checkout
unstage = reset HEAD
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
lol = log --pretty=oneline --abbrev-commit --graph --decorate
conflicts = !git ls-files --unmerged | cut -c51- | sort -u | xargs $EDITOR
resolve = !git ls-files --unmerged | cut -c51- | sort -u | xargs git add
unpushed = cherry -v
upstream = rev-parse --symbolic-full-name --abbrev-ref HEAD@{upstream}
amend = commit --amend
up = pull --rebase --autostash
[core]
excludesfile = ~/.gitignore
editor = subl -wn
whitespace = space-before-tab, trailing-space, cr-at-eol
trustctime = false
precomposeunicode = false
[help]
autocorrect = 1
[merge]
log = true
tool = code
[mergetool "code"]
cmd = code --wait --merge $REMOTE $LOCAL $BASE $MERGED
[apply]
whitespace = fix
[push]
default = current
followTags = true
[branch]
autosetupmerge = true
autosetuprebase = always
mergeoptions = --no-ff
[status]
relativePaths = true
[format]
pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset
[color]
ui = auto
[color "branch"]
current = "yellow reverse"
local = yellow
remote = green
[color "status"]
header = white dim
branch = yellow
added = green
changed = red
untracked = blue
[color "diff"]
meta = blue
commit = green
frag = magenta
old = red
new = green
whitespace = "red reverse"
[color "diff-highlight"]
oldNormal = red
oldHighlight = "red 52"
newNormal = green
newHighlight = "green 22"
[difftool]
prompt = false
[difftool "Kaleidoscope"]
cmd = ksdiff-wrapper git \"$LOCAL\" \"$REMOTE\"
[diff]
tool = Kaleidoscope
# Detect copies as well as renames
renames = copies
# (git 2.9+) Set this option to `true` to enable an experimental heuristic that
# shifts the hunk boundary in an attempt to make the resulting
# patch easier to read.
compactionHeuristic = true
algorithm = histogram
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[pager]
diff = diff-so-fancy | less --tabs=4 -RFX
show = diff-so-fancy | less --tabs=4 -RFX