-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
58 lines (52 loc) · 1.3 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
[user]
name = [name]
email = [mail]
[core]
excludesfile = ~/.gitignore
trustctime = false
whitespace = tab-in-indent,trailing-space
quotepath = false
[init]
defaultBranch = main
[color]
ui = auto
whitespace = red reverse
[push]
default = upstream
[branch]
autosetuprebase = always
[alias]
amend = commit --amend -m
amendno = commit --amend --no-edit
bla = blame -W -C
br = branch
ci = commit
cia = commit --all
cif = commit --fixup
cim = commit -m
cima = commit --all -m
co = checkout
cob = checkout -b
cot = checkout -t
cp = cherry-pick
df = diff --patch-with-stat --color-moved
dfs = diff --staged --patch-with-stat --color-moved
dfw = diff --patch-with-stat --color-moved --word-diff
dtd = difftool --dir-diff
dump = cat-file -p
ec = config --global --edit
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
hist2 = log --pretty=oneline --abbrev-commit --branches=* --graph
hist3 = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
hist4 = log --pretty=oneline -n 20 --graph
l = log
ld = log --decorate
ll = log --oneline
lld = log --oneline --decorate
llg = log --oneline --graph
ri = rebase --interactive
re = restore
st = status
sw = switch
type = cat-file -t
w = whatchanged