-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
111 lines (108 loc) · 3.23 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
105
106
107
108
109
110
111
[user]
name = Jeff Boes
email = [email protected]
[alias]
sh = show --oneline --stat
both = diff HEAD
bs = branch -vv
cho = checkout
ci = commit
contains = branch -r --contains
cv = commit --verbose
df = diff
dor = diff origin...
dsf = "!f() { [ -z \"$GIT_PREFIX\" ] || cd \"$GIT_PREFIX\" && git diff --color \"$@\" | diff-so-fancy | less --tabs=4 -RFX; }; f"
dst = diff --stat HEAD
fixup = commit --amend -C HEAD
hist = log --all --decorate --graph --oneline
la = "!git config -l | grep alias | cut -c 7- | sort"
lg = log --graph
lg = log -p
log-standup = !git log --since yesterday --author $(git config user.email) --pretty=short
ls = log --oneline
new = !sh -c 'git log $1@{1}..$1@{0} "${@:-HEAD}"'
oneline = log --pretty=oneline
pushf = push --force-with-lease
recent = log --oneline --since=2.weeks
s = status --short --branch
sls = stash list --pretty=format:\"%C(red)%h%C(reset) - %C(dim yellow)(%C(bold magenta)%gd%C(dim yellow))%C(reset) %<(70,trunc)%s %C(green)(%cr)%C(reset)\"
st = status
staged = diff --cached
t = "!git status -s | while read mode file; do echo $mode $(stat -f \"m%t%Sm %N\" $file) $file; done | sort -rn | cut -f2-"
unstage = reset HEAD
unstaged = diff
wip = commit -a -m WIP
wst = diff --stat origin...
wu = log --stat origin..@{0}
wup = log -p origin..@{0}
#done = !f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | }\; f
# Mark a file as "assume unchanged", which means that Git will treat it
# as though there are no changes to it even if there are. Useful for
# temporary changes to tracked files
assume = update-index --assume-unchanged
# Reverse the above
unassume = update-index --no-assume-unchanged
# Show the files that are currently assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
# Find text in any commit ever
grep-all = !"f() { git rev-list --all | xargs git grep \"$@\"; }; f"
[color]
ui = true
diff = auto
status = auto
branch = auto
interactive = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[color "diff"]
whitespace = red reverse
meta = yellow
frag = magenta bold
commit = yellow bold
old = red
new = green
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
#pager = diff-so-fancy | less --tabs=4 -RFX
pager = less
[diff]
mnemonicprefix = true
[fetch]
prune=true
[gc]
auto = 0
[include]
path = ~/.gitconfig-local
[log]
date = local
[pull]
rebase = true
[push]
default = simple
[rebase]
autosquash = true
[url "[email protected]:"]
pushInsteadOf = https://github.com/
pushInsteadOf = http://github.com/
pushInsteadOf = git://github.com/
[http]
postBuffer = 157286400
[grep]
lineNumber = true
[remote "origin"]
tagOpt = --no-tags
fetch = +refs/heads/master:refs/remotes/origin/master
fetch = +refs/heads/jboes.*:refs/remotes/origin/jboes.*
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[feature]
manyFiles = true