-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
101 lines (89 loc) · 2.26 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
[user]
name = Hugo Saporetti Junior
email = yorevs@gmail.com
[apply]
# Detect whitespace errors when applying a patch
whitespace = fix
[core]
editor = vim
whitespace = fix,-ident-with-non-tab,trailing-space,cr-at-eol
excludesFile = **/.DS_Store,**/.gitignore,**/.gitattributes,**/Icon?
trustctime = false
precomposeunicode = false
untrackedCache = true
[web]
browser = google-chrome
[alias]
# List aliases
aliases = config --get-regexp alias
a = add
aa = add --all
b = branch
c = commit -m
ca = commit --amend --no-edit
d = diff
f = fetch
g = grep -p
s = status -s
f = fetch
p = pull
prb = pull --rebase
cm = commit -m
ca = commit --amend --no-edit
co = checkout
l = log --oneline --graph --decorate
ls = ls-files
p = pull
ps = push
s = status
# Find branches containing commit
fb = "!f() { git branch -a --contains $1; }; f"
# Find tags containing commit
ft = "!f() { git describe --always --contains $1; }; f"
# Find commits by source code
fc = "!f() { git log --pretty=format:'%C(yellow)%h %Cblue%ad %Creset%s%Cgreen [%cn] %Cred%d' --decorate --date=short -S$1; }; f"
# Find commits by commit message
fm = "!f() { git log --pretty=format:'%C(yellow)%h %Cblue%ad %Creset%s%Cgreen [%cn] %Cred%d' --decorate --date=short --grep=$1; }; f"
[help]
# Automatically correct and execute mistyped commands
autocorrect = 1
[color]
diff = true
status = true
branch = true
interactive = true
ui = auto
pager = true
decorate = true
showbranch = true
grep = true
[color "interactive"]
error = red bold
[color "grep"]
match = normal
[color "status"]
header = white bold
added = green bold
changed = red bold
untracked = magenta bold
updated = green bold
nobranch = red reverse bold
[color "branch"]
current = cyan bold
local = blue bold
remote = red bold
plain = normal
[color "diff"]
plain = normal
meta = white bold
frag = yellow bold
old = red bold
new = green bold
commit = blue bold
whitespace = white reverse
[rerere]
enable = true
[init]
defaultBranch = main
[pull]
rebase = true