forked from aziz/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
53 lines (53 loc) · 1.29 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
[user]
name = ${name}
email = ${email}
[github]
user = ${gh_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
[core]
excludesfile = ~/.gitignore
editor = subl -w
autocrlf = input
whitespace = space-before-tab, trailing-space
[help]
autocorrect = 1
[apply]
whitespace = nowarn
[push]
default = current
[branch]
autosetupmerge = true
autosetuprebase = always
mergeoptions = --no-ff
[format]
pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset
[color]
diff = auto
status = auto
branch = auto
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "status"]
added = green
changed = red
untracked = yellow
[color "diff"]
meta = blue bold
frag = magenta bold
old = red bold
new = green bold
[difftool]
prompt = false
[difftool "Kaleidoscope"]
cmd = ksdiff-wrapper git \"$LOCAL\" \"$REMOTE\"
[diff]
tool = Kaleidoscope