-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
80 lines (69 loc) · 3.48 KB
/
Copy pathgitconfig
File metadata and controls
80 lines (69 loc) · 3.48 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
77
78
79
; vi: set ts=4 sw=4 et ft=gitconfig:
[alias]
; helpers
alias = config --get-regexp ^alias\\.
colors = log -1 HEAD --color --pretty=format:' \
Plain %C(magenta)magenta %C(red)red %C(yellow)yellow %C(green)green %C(cyan)cyan %C(blue)blue %C(black)black %C(white)white %C(normal)normal%C(reset)%n \
BOLD %C(bold magenta)magenta %C(red)red %C(yellow)yellow %C(green)green %C(cyan)cyan %C(blue)blue %C(black)black %C(white)white %C(normal)normal%C(reset)%n \
DIM %C(dim magenta)magenta %C(red)red %C(yellow)yellow %C(green)green %C(cyan)cyan %C(blue)blue %C(black)black %C(white)white %C(normal)normal%C(reset)%n \
UL %C(ul magenta)magenta %C(red)red %C(yellow)yellow %C(green)green %C(cyan)cyan %C(blue)blue %C(black)black %C(white)white %C(normal)normal%C(reset)%n \
STRIKE %C(strike magenta)magenta %C(red)red %C(yellow)yellow %C(green)green %C(cyan)cyan %C(blue)blue %C(black)black %C(white)white %C(normal)normal%C(reset)%n \
BLINK %C(blink magenta)magenta %C(red)red %C(yellow)yellow %C(green)green %C(cyan)cyan %C(blue)blue %C(black)black %C(white)white %C(normal)normal%C(reset)%n \
REVERSE %C(reverse magenta)magenta %C(red)red %C(yellow)yellow %C(green)green %C(cyan)cyan %C(blue)blue %C(black)black %C(white)white %C(normal)normal%C(reset)'
; Simple oneline output with signature status added
lo = log --pretty='format:%C(auto)%h %C(cyan)%G?%C(auto)%d %s'
; Show oneline output with commit date and author date
ld = log --pretty='format:%C(auto)%h %C(blue)%cI %C(magenta)%aI %C(cyan)%G?%C(reset) %s'
; Show the name and status of added/removed/modified files
ls = log --name-status --pretty='format:%C(auto)%h %C(blue)%cs %C(cyan)%G?%C(auto)%d %s %C(yellow)<%an>%C(reset)'
; Show the insertions and deletions of files
ll = log --stat --pretty='format:%C(auto)%h %C(blue)%cs %C(cyan)%G?%C(auto)%d %s %C(yellow)<%an>%C(reset)'
; Graph output, with and without all refs
lga = log --graph --all --pretty='format:%C(auto)%h %C(blue)%cs %C(cyan)%G?%C(auto)%d %s %C(yellow)<%an>%C(reset)'
lg = log --graph --pretty='format:%C(auto)%h %C(blue)%cs %C(cyan)%G?%C(auto)%d %s %C(yellow)<%an>%C(reset)'
; Show insertions and deletions compared to upstream branch
ahead = show --oneline --stat @{upstream}..HEAD
behind = show --oneline --stat HEAD..@{upstream}
; Show insertions and deletions for specific commits
changed = show --stat
last = show --stat HEAD
; Use word-based diff instead of line-based diff. Useful on files containing
; prose, like READMEs and documentation
wdiff = diff --word-diff
; everything else
st = status
stat = status
sti = status --ignored
fs = !git fetch && git status
pf = pull --ff-only
unstage = reset HEAD --
[core]
#autocrlf = true # Windows
autocrlf = input # Linux
editor = vim
[credential]
helper = cache --timeout=43200
[diff]
algorithm = histogram
colorMoved = default
[diff "ansible-vault"]
textconv = PAGER=cat ansible-vault view
cachetextconv = false
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[init]
defaultBranch = main
[merge]
log = 100
[push]
default = simple
[user]
name = "Chris Coley"
; Throw a fatal error when email isn't set as a reminder to set it
useConfigOnly = true
; Include additional config files
[include]
path = ~/.gitconfig.local