-
-
Notifications
You must be signed in to change notification settings - Fork 90
/
.gitconfig.base
109 lines (109 loc) · 2.55 KB
/
.gitconfig.base
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
#
# NOTE: This file is renamed to .gitconfig by my install script, and a .postinstall script sets
# name/email/signingkey.
#
[core]
editor = vim
pager = less -FRX
excludesfile = ~/.gitignore
[gist]
private = yes
[init]
defaultBranch = main
[log]
decorate = short
[fetch]
prune = true
output = compact
[pull]
default = simple
[push]
default = current
[rerere]
enabled = true
[stash]
showStat = true
[difftool]
prompt = false
[merge]
conflictStyle = diff3
[mergetool]
prompt = false
keepBackup = false
[branch "main"]
remote = origin
merge = refs/heads/main
[branch "master"]
remote = origin
merge = refs/heads/master
[alias]
am = commit --amend --no-edit
ama = commit --amend --no-edit -a
b = branch
bi = bisect
bnew = checkout -b
ci = commit
cia = commit --amend
cim = commit -m
civ = commit -v
co = checkout
cp = cherry-pick
config-to-push-all-branches = config --add remote.origin.push '+refs/heads/*:refs/heads/*'
config-to-push-all-tags = config --add remote.origin.push '+refs/tags/*:refs/tags/*'
d = diff
dc = diff --cached
diffc = diff --cached
forkup = pull --rebase upstream
h = stash
hs = stash save
last = log -1
latest = for-each-ref --sort=committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'
newb = checkout -b
changelog = log --oneline --format='%h %s (%cr) <%an>'
quicklog = log --oneline --decorate -10 --pretty=format:'%C(yellow)%h%C(reset)%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an> %C(bold black)[%G?]%Creset'
quicklog-long = log --oneline --decorate --pretty=format:'%C(yellow)%h%C(reset)%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an> %C(bold black)[%G?]%Creset'
r = remote
rb = rebase
rl = reflog
rewind-one = reset --hard HEAD^
st = status
sta = stash
svnci = svn dcommit
svnprep = rebase -i git-svn
svnup = svn rebase
t = tag
today = diff --stat 'HEAD@{midnight}'
tree = log --graph --oneline --all
undo = reset --mixed HEAD^
undoamend = reset --soft HEAD@{1}
un = unstage
unstage = reset HEAD
untracked = ls-files --others --exclude-standard
up = pull --rebase origin
yesterday = diff --stat 'HEAD@{yesterday}' 'HEAD@{midnight}'
[color]
diff = auto
status = auto
branch = auto
ui = auto
[color "diff"]
meta = blue
frag = black
old = red
new = green
[color "status"]
added = green
changed = yellow
untracked = cyan
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "interactive"]
help = brightmagenta
[advice]
statusHints = false
detachedHead = false
addEmptyPathspec = false
pushUpdateRejected = false
skippedCherryPicks = false