-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
69 lines (68 loc) · 2.1 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
# --date = (relative|local|default|iso|rfc|short|raw)
[alias]
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
bl = branch --all --verbose --verbose
ca = commit --amend -C HEAD
ci = commit
cm = commit -m
co = checkout
dc = diff --cached
df = diff
ds = diff --staged
dst = diff --stat -r
dw = diff --word-diff --color-words
g = grep --line-number --ignore-case
gl = log --color=always --all --graph --topo-order --pretty=\"format: %Cgreen%h%Creset %s%Cred%d%Creset%n\"
hist = log --pretty=format:\"%h %ad%x09%an%x09 | %s%d\" --graph --date=short
i = remote --verbose
lg = log --graph --full-history --all --pretty=format:'%Cred%h%Creset %ad %s %C(yellow)%d%Creset %C(bold blue)<%an>%Creset' --date=short
lga = log --graph --decorate --pretty=oneline --abbrev-commit
lm = log --color=always --pretty=format:\"%Cgreen%h%Creset - %Cred%an%Creset, %ad (%ar): %C(yellow)%s%Creset\" --stat --date=short
ln = log --name-status
lp = log --patch
ls = log --stat --relative-date
me = log --stat --author="vakarev"
rank = !git log --pretty=format:'%aN <%aE>' | sort | uniq -c | sort -rn
sl = stash list
sp = submodule update --remote
st = status -sbu
su = submodule update --init
tl = tag --list --sort version:refname
uc = reset --soft HEAD^ # retains commit as staged
what = show -s --pretty='tformat:%h (%s, %ad)' --date=short
who = shortlog -s --
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = auto
[color "diff"]
old = red
new = green
[color "branch"]
current = blue reverse
local = green
remote = yellow
[color "status"]
added = green
changed = red bold
untracked = cyan
[core]
editor = vim -u NONE
excludesfile = ~/.gitignore-global
attributesfile = ~/.gitattributes-global
[diff "sopsdiffer"]
textconv = sops -d
[init]
defaultBranch = main
[merge]
tool = vimdiff
[pull]
ff = only
[push]
default = simple
autoSetupRemote = true
[user]
name = Andrii Vakarev
email = [email protected]