-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitconfig
More file actions
133 lines (106 loc) · 3.7 KB
/
.gitconfig
File metadata and controls
133 lines (106 loc) · 3.7 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[user]
name = Christophe Grosse
email = cgr789box-github@yahoo.com
[core]
# use your favorite editor
editor = vim
# short revisions are 8 characters by default, use 12 to avoid collisions
abbrev = 12
# see "man less" for options
pager = less -RSX
[pager]
# only enable pager for diff and log
diff = less -RSFX
branch = false
tag = false
describe = false
status = false
[diff]
# detect renamed and copied files
renames = copies
# try to produce smaller diffs
algorithm = minimal
indentHeuristic = true
# always include a/ and b/ prefixes in unified diffs
noprefix = false
[pretty]
fixes = Fixes: %h (\"%s\")
line = %C(auto)%h %C(auto,cyan)%>(5)%(trailers:only=true,key=PR,valueonly,unfold,separator=%x)%C(auto)%d %C(auto,reset)%s
[trailer]
separators = :=
[sendemail]
# sensible defaults, this requires a properly configured email system
envelopesender = auto
chainreplyto = false
confirm = always
[alias]
# useful shortcuts, adjust to taste
l = log --pretty=line --topo-order
lfixes = log --pretty=fixes
chpick = cherry-pick -sex
s = status --short --branch
g = grep
ri = rebase -i
ra = rebase --abort
rc = rebase --continue
rp = reset -p HEAD^
ci = commit -s
ca = commit --amend
can = commit --amend --no-edit
co = checkout
w = !/mnt/sources/clones/infrastructure/git-tools/scripts/git-web add
a = add -u
ap = add -p
wip = commit -asm 'wip'
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset) - %C(magenta)committed %C(bold magenta)%cr%C(reset) %C(magenta)by %C(bold magenta)%cn%C(reset) ' --all
# More advanced aliases
# $1 is used to get fixup commit ID and is also used as message. That
# way gitweb can put an hyperlink
cf = !git commit --fixup $1 --message
[fetch]
# delete local branches that have been removed from remotes
prune = true
[pull]
# automatically rebase on remote tracking branches
rebase = true
[push]
# require to explicitly specify what you want to push
# to avoid pushing things by mistake
default = nothing
[uploadArchive]
# allow running git archive --remote on non-tagged commits
allowUnreachable = true
[commit]
# display diff when editing commit message
verbose = true
[protocol]
# try to use a faster protocol if supported
version = 2
[completion]
# avoid completion conflict with git reset
commands = -restore
[rebase]
# automatically reorder commits based on Fixup: or Squash: prefixes
# when doing interactive rebase
autoSquash = true
[log]
# display branch tips and tags in color
decorate = true
follow = true
[grep]
linenumber = true
[color]
diff = auto
ui = auto
[color "grep"]
filename = magenta
lineNumber = green
separator = blue
[color "grep-all-components"]
filename = magenta
component = green
branch = cyan
[color "find-all-components"]
branch = magenta
component = green