-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
104 lines (96 loc) · 2.2 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Important stuff
[user]
name = Alhadis
email = gardnerjohng@gmail.com
signingkey = 29ADC0C5D992F678
[core]
autocrlf = false
excludesfile = ~/.files/etc/.global.gitignore
attributesfile = ~/.files/etc/.global.gitattributes
whitespace = -blank-at-eol
ignorecase = false
untrackedCache = true
[credential]
helper = osxkeychain
[github]
user = Alhadis
[gpg]
program = gpg2
# Porcelain configuration
[color]
pager = false
[diff]
renames = copies
[help]
autocorrect = never
[init]
defaultBranch = master
[pager]
show = format-diff
diff = format-diff
[pull]
rebase = false
[stash]
showIncludeUntracked = true
showPatch = true
# User-defined git(1) subcommands
[alias]
# Rarely-used shorthands
co = checkout
r = remote --verbose
s = status
# Manipulate history of local checkout
undo = reset --soft HEAD~1
rewind = reset --hard
# Print the default branch-name used by remote
default-branch = "! { \
remote=`git remote`; \
branch=`git symbolic-ref -q --short \"refs/remotes/$remote/HEAD\"`; \
printf '%s\n' \"${branch#\"$remote/\"}\"; \
};"
# Print the object-ID of the branch's last commit
latest-hash = show --no-patch --format=%H
# Print the name of the most recently-tagged release
latest-tag = for-each-ref \
--merged=HEAD \
--count=1 \
--ignore-case \
--sort='-*creatordate' \
--format='%(refname:lstrip=-1)' \
refs/tags
# Diff drivers for binary file formats
[diff "bin"]
textconv = hexdump -v -C
cachetextconv = true
[diff "doc"]
textconv = antiword -rsft
cachetextconv = true
[diff "docx"]
textconv = docx2txt.pl - /dev/stdout <
cachetextconv = true
[diff "dyld"]
textconv = dyld_info -platform -segments -dependents -objc -inits -exports -fixups
cachetextconv = true
[diff "exif"]
textconv = exiftool -a -U -x FileName -x Directory
cachetextconv = true
[diff "odt"]
textconv = odt2txt
cachetextconv = true
[diff "pdf"]
textconv = pdftotext -htmlmeta -layout - /dev/stdout <
cachetextconv = true
binary = true
[diff "ps"]
textconv = ps2ascii
cachetextconv = true
binary = true
[diff "sym"]
textconv = nm -aCp
cachetextconv = true
# Filter drivers
[filter "lfs"]
process = git-lfs filter-process
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true