-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
71 lines (64 loc) · 1.61 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
71
# ========
# Colors
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
# ========
# Use info
[user]
name = Alexander Kondratskiy
email = kholdstare0.0@gmail.com
[github]
user = KholdStare
# ========
# suggested settings by qt project from http://qt-project.org/wiki/Setting-up-Gerrit
[push]
default = tracking
[rerere]
enabled = true
# this saves you the git add, but you should verify the result with git diff --staged
autoupdate = true
[rebase]
stat = true
[core]
pager = "less -FRSX"
eol = lf
# ========
# Handy aliases
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset %C(cyan)%an%Creset -%C(blue)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
# some aliases described in http://blog.apiaxle.com/post/handy-git-tips-to-stop-you-getting-fired/
snapshot = !git stash save "snapshot: $(date)" && git stash apply "stash@{0}"
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
# ========
[diff]
algorithm = patience
[branch "master"]
rebase = true
[branch "main"]
rebase = true
[core]
fileMode = false
ignorecase = true
autoclrf = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true