-
Notifications
You must be signed in to change notification settings - Fork 511
/
.gitconfig
78 lines (60 loc) · 2.12 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
# Custom Useful Git configs
# USER AUTH ###################################################################
#[user]
# name = Your Real Name Here
# email = [email protected]
#[github]
# user = YourGitHubUser
# Git Core ####################################################################
#[core]
# safecrlf = warn
# autocrlf = input # input on Linux, auto on Windows
# compression = 9
# loosecompression = 9
# askpass = ssh-askpass # Use a GUI dialog to Ask Password on Linux
# whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol,tab-in-indent,tabwidth=4
# Credential Helper, dont ask password every time #############################
[credential]
helper = cache
# helper = osxkeychain # for Mac OsX
# Autocorrect for mistyped git commands #######################################
[help]
autocorrect = 1
# PRETTY COLORS ###############################################################
[color]
ui = auto
diff = auto
grep = auto
interactive = auto
showbranch = auto
status = auto
[color "branch"]
current = yellow bold
local = green bold
remote = cyan bold
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red blink
new = green bold
whitespace = red reverse
[color "status"]
added = green bold
changed = yellow bold
untracked = red bold
# Security Check of SSL for HTTPS #############################################
[http]
sslVerify = true
# alias to commands ###########################################################
[alias]
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
unassumeall = !git assumed | xargs git update-index --no-assume-unchanged
assumeall = "!git st -s | awk {'print $2'} | xargs git assume"
#
ours = "!f() { git checkout --ours $@ && git add $@; }; f"
theirs = "!f() { git checkout --theirs $@ && git add $@; }; f"
#
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short