Repository navigation
master
/
.gitconfig
99 lines (80 loc) · 2.01 KB
master
/
.gitconfig
File metadata and controls
- Code
- Blame
99 lines (80 loc) · 2.01 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
87
88
89
90
91
92
93
94
95
96
97
98
99
[user]
name = Dominic Rico Gómez
email = hello@coderocket.me
[core]
excludesfile = ~/.gitignore_global
editor = vim
filemode = false
trustctime = false
autocrlf = input
pager = diff-so-fancy | less --tabs=4 -RFX
[alias]
# one-line log
l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
a = add
ap = add -p
c = commit --verbose
ca = commit -a --verbose
cm = commit -m
cam = commit -a -m
m = commit --amend --verbose
d = diff
ds = diff --stat
dc = diff --cached
st = status -s
go = checkout
cb = checkout -b
# list branches sorted by last modified
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
# list aliases
la = "!git config -l | grep alias | cut -c 7-"
#close branch
done = "!f() { git branch | grep "$1" | cut -c 3- | grep -v done | xargs -I{} git branch -m {} done-{}; }; f"
sl = stash list
sa = stash apply
ss = stash save
[http]
sslVerify = false
[filter "gitignore"]
clean = "sed '/#gitignore$/'d"
smudge = cat
clean = sed
clean = sed
clean = "sed '/#gitignore$/'d"
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[credential]
helper = osxkeychain
[grep]
lineNumber = true
[help]
autocorrect = 1
[difftool]
prompt = false
[mergetool]
prompt = false
[push]
default = simple
followTags = true
[fetch]
prune = true