forked from anishathalye/dotfiles_template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
78 lines (78 loc) · 1.92 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
[user]
name = George Hilliard
[alias]
unstage = reset HEAD --
visual = !gitk --all -n10000
vis = !gitk --all -n10000
ours = "!f() { git checkout --ours ${@} && git add ${@}; }; f"
theirs = "!f() { git checkout --theirs ${@} && git add ${@}; }; f"
st = status
co = checkout
ci = commit
ds = diff --staged
rp = "!f() { git rev-parse ${@:-@}^{commit}; }; f"
sm = submodule
rset = reset
lg = log --graph --pretty=format:'%Cgreen%h%C(reset) %C(cyan)%ar %C(bold yellow)%d%Creset %s %Cgreen(%cr) %C(blue)<%an>%Creset' --abbrev-commit --all
hlg = "!f() { git lg ${@} | head -n20; }; f"
amend = commit --amend -C HEAD
amen = !echo 'git: Amen, brother.\n\nDid you mean this?\n amend'
ignore = "!f() { curl -LJf https://www.gitignore.io/api/$@ ;}; f >> .gitignore"
undo-merge = reset --merge HEAD@{1}
makethis = "checkout -B"
quickserve = daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/
[diff]
algorithm = patience
tool = xxdiff
compactionHeuristic = true
renames = copies
[color]
ui = true
[gui]
historybrowser = gitk
[pull]
ff = only
[merge]
ff = false
tool = kdiff3
renamelimit = 5000
[push]
default = simple
[fetch]
prune = true
[core]
excludesfile = ~/.gitignore_global
pager = less -S -x1,5
[rerere]
enabled = true
[init]
templatedir = ~/.git_template
defaultBranch = master
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[protocol]
version = 2
[interactive]
singleKey = true
[sendemail]
identity = thirtythreeforty
[sendemail.thirtythreeforty]
# smtpPass = *****
smtpserver = smtp.gmail.com
smtpserverport = 587
smtpencryption = tls
smtpuser = thirtythreeforty
from = George Hilliard <[email protected]>
[rebase]
autoStash = true
multiEdit = true
[mergetool "gitblade"]
cmd = \"/usr/lib/gitblade/gitblade\" -c \"\"
trustExitCode = true
[pack]
useSparse = true
[include]
path = .gitconfig_local