-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
77 lines (67 loc) · 2.11 KB
/
gitconfig
File metadata and controls
77 lines (67 loc) · 2.11 KB
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
# vim: filetype=gitconfig
[core]
excludesfile = ~/.cvsignore
pager = git-pager
[init]
templatedir = /home/jbrubake/.git_template
defaultBranch = master
[user]
name = "Jeremy Brubaker"
email = "jbru362@gmail.com"
[github]
user = "jbrubake"
[alias]
aliases = config --get-regexp alias ; List aliases
s = status -s ; View short format status
fixup = commit --amend --no-edit ; Amend without editing commit message
stage-all = add --all ; Stage everything
unstage-all = reset HEAD ; Unstage everything
undo-merge = reset --hard ORIG_HEAD ; Undo a merge
; git log
;
; lg: Short commit message only
; lt: Short commit message and branch graph
lg = log --pretty='%C(auto)%<(7)%h%d %s %C(green)(%cs) %C(cyan)<%aN>'
lt = log --graph --pretty='%C(auto)%<(7)%h%d %s %C(green)(%cs) %C(cyan)<%aN>'
whatadded = log --diff-filter=A -- ; What commit that added a file?
whatdeleted = log --diff-filter=D -- ; What commit deleted (possibly by renaming) a file?
logfile = log --patch --follow -- ; File history
; Print last commit for tracked files
;
; git last: all tracked files
; git last <list>: all files in list (can include globs)
;
; (Use @ in the format string to represent the filename)
last = "!f() { \
git ls-files \"$@\" | \
xargs -I@ git log -n1 --format='%C(green)@|%C(auto)%s|%C(auto)%h|%C(cyan)%aN' --color=always -- @ | \
column -t -s'|'; }; f"
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = 11
frag = magenta bold
old = red bold
new = green bold
commit = yellow bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "status"]
added = yellow
changed = green
untracked = cyan
[diff-so-fancy]
stripLeadingSymbols = false
[sendemail]
smtpserver = smtp.gmail.com
smtpencryption = ssl
smtpserverport = 465
smtpuser = jbru362@gmail.com