-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitconfig
44 lines (36 loc) · 1.22 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
[user]
name = Andrey Petrov
email = [email protected]
[alias]
undo = reset --soft HEAD^
last = log -1 HEAD
serve = daemon --reuseaddr --base-path=. --export-all --verbose --enable=receive-pack --listen=0.0.0.0
diff2 = diff --color-words --ignore-all-space --patience
log2 = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
deploy = "!merge(){ git checkout $2 && git merge $1 && git push $2 && git checkout ${1#refs/heads/}; }; merge $(git symbolic-ref HEAD) $1"
blast = for-each-ref --sort=-committerdate refs/heads/ --format="%(committerdate:relative)%09%(refname:short)"
pr = !"pr() { git fetch origin pull/$1/head:pr-$1; git checkout pr-$1; }; pr"
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
plain = blue
[color "diff"]
plain = normal
meta = yellow
frag = magenta
old = red
new = green
commit = cyan
whitespace = yellow red
[color "status"]
header = blue
added = green
changed = yellow
untracked = cyan
nobranch = red
[branch "master"]
remote = origin
merge = refs/heads/master