-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
87 lines (76 loc) · 2.76 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
[core]
editor = vim
pager = less
excludesfile = .gitignore
[push]
default = current
followTags = true
[color]
diff = auto
status = auto
branch = auto
interactive = auto
pager = true
ui = auto
[alias]
praise = blame
prune = fetch --prune
undo = reset --soft HEAD^
st = status -sb
standup = log --since '1 day ago' --no-merges --branches --author Hansel --date=relative --pretty=format':%Cgreen%cd%Creset \t%Cred%h%Creset %s'
sprint = log --since '14 day ago' --no-merges --branches --author Hansel --date=relative --pretty=format':%Cgreen%cd%Creset \t%Cred%h%Creset %s'
monday = log --since '3 day ago' --no-merges --branches --author Hansel --date=relative --pretty=format':%Cgreen%cd%Creset \t%Cred%h%Creset %s'
nuke = !git branch -d $1 && git push origin --delete $1
unstage = reset HEAD
authors = shortlog -s -n --all --no-merges
b = branch -v # verbose branch
co = checkout
nb = checkout -b
d = diff
ds = diff --staged
cd = diff --color-words -b
l = log
log = log --decorate --graph --date=short
hist = log --pretty=format:\"%Cred%h %Cblue%ad %Creset| %s%d %Cgreen[%an]\" --graph --date=relative --simplify-merges
lgbw= log --graph '--format=%h %ar %d %s'
lg = log --graph '--format=%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s'
lga = log --graph '--format=%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all
#this is the most commonly used one, it turns out!
l19 = log --graph '--format=%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all -19
# and this one can be a real lifesaver on a complex tree
lsd = log --graph '--format=%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all --simplify-by-decoration
# log left-right; requires argument like A...B (3 dots)
lglr= log --graph '--format=%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --boundary --left-right --cherry-pick
# compact colorized git log
com = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
quick-stats = ! /usr/local/bin/git-quick-stats
[rerere]
# Remember my merges
# http://gitfu.wordpress.com/2008/04/20/git-rerere-rereremember-what-you-did-last-time/
enabled = true
[user]
name = Hansel Dunlop
email = [email protected]
[log]
color = true
[status]
color = auto
[pager]
color = true
[diff]
color = auto
rename = copy
[http]
sslVerify = false
[apply]
whitespace = strip
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[lfs]
url = https://live.touchsurgery.com/api/v3/lfs
activitytimeout = 60
[merge]
tool = vimdiff