-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
70 lines (61 loc) · 1.42 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
[user]
name = João Gradim
email = [email protected]
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 11
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
pager = diff-so-fancy | less --tabs=4 -RFX
whitespace = blank-at-eol,blank-at-eof,trailing-space,space-before-tab,indent-with-non-tab
merge-options = --no-ff
editor = vim
excludesfile = ~/.gitignore
[alias]
co = checkout
st = status
ci = commit
br = branch
cp = cherry-pick
stale-branches = "!f() { \
git for-each-ref --format '%(refname) %(upstream:track)' refs/heads | \
awk '$2 == \"[gone]\" {sub(\"refs/heads/\", \"\", $1); print $1}'; \
}; f"
clean-stale-branches = "!f() {\
git stale-branches | \
xargs git branch -D; \
}; f"
gl = log --graph --decorate --pretty=oneline --abbrev-commit --all --date-order
s = status -sb
dc = diff --cached
d = diff
latest = rev-parse --short HEAD
[push]
default = simple
[pull]
ff = only
[init]
defaultBranch = main