-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
65 lines (49 loc) · 1.33 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
[user]
name = Andrey Alekseenko
email = [email protected]
[merge]
tool = vimdiff
[diff]
tool = vimdiff
noprefix = true
[alias]
# Base commands
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
pr = pull --rebase --autostash
# Show only tracked files
stu = status --untracked-files=no
# Show history
hist = log --pretty=format:\"%h %ad %C(bold)%s%Creset%d [%an]\" --graph --date=short
# Show diff of given commit
sd = show --pretty=format:%b
# Make "git git" work like "git"
git = !git
dry = "!f() { git merge-tree $(git merge-base FETCH_HEAD $1) $1 FETCH_HEAD | sed -n '/+<<<<<<< .our/,/+>>>>>>> .their/p;/^changed in both/{n;N;N;s/^/#/mg;p}' ; }; f"
[color]
ui = true
status = true
diff = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = green
frag = yellow
old = magenta
new = cyan
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[pull]
ff = only
[fetch]
prune = true
[rerere]
enabled = true