-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
75 lines (62 loc) · 1.59 KB
/
gitconfig
File metadata and controls
75 lines (62 loc) · 1.59 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
[alias]
# State manipulation
newb = switch -c
s = switch
pf = push --force
rh = reset --hard
aa = add --all :/
ci = commit -v
ca = commit --all --amend --no-edit
save = commit -a -m "Save"
f = fetch --tags --prune
fa = fetch --all --tags --prune
staash = stash --include-untracked
# Information
versions = tag -l --sort=version:refname
st = status -sb
lg = log -p
gr = log --graph --format=line # graph
grd = log --graph --format=detail # graph detail
gra = log --graph --format=line --all # graph all
grad = log --graph --format=detail --all # graph all in detail
# Environment cleanup
update-submodules = submodule update --init --recursive
upgrade-submodules = submodule update --init --remote
branchwipe = removed-branches --prune --force
[init]
defaultBranch = main
[diff]
mnemonicPrefix = true
wordRegex = "[^[:space:]]|([[:alnum:]]|UTF_8_GUARD)+"
compactionHeuristic = true
[color]
ui = auto
[color "grep"]
match = cyan bold
selected = blue
context = normal
filename = magenta
linenumber = green
separator = yellow
function = blue
[pretty]
line = "%C(auto)%h %<|(60,trunc)%s %C(green)%ad%C(auto)%d"
detail = "%C(auto)%h %s%n %C(yellow)by %C(blue)%an %C(magenta)<%ae> [%G?] %C(green)%ad%n %C(auto)%d%n"
[merge]
defaultToUpstream = true
[pull]
ff = only
[push]
default = upstream
[user]
useConfigOnly = true
[http]
cookieFile = ~/.gitcookies
[core]
excludesfile = ~/.gitignore_global
editor = code -r -w
[url "https://github.com/"]
insteadOf = git://github.com/
# Allow local customizations in the .gitconfig_local file
[include]
path = ~/.gitconfig_local