-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitconfig
52 lines (50 loc) · 1.29 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
[user]
name = Richard Heycock
email = rgh@filterfish.org
[color]
branch = auto
diff = auto
status = auto
ui = auto
[alias]
a = add
ap = add --patch
c = commit
ca = commit --amend -C HEAD
dd = diff
ddi = diff --cached
dds = diff --stat
ds = "!f() { n=${1:-0}; [ $(git stash list | wc -l) -gt 0 ] && git diff stash@{$n}~1..stash@{$n}; }; f"
dss = "!f() { n=${1:-0}; [ $(git stash list | wc -l) -gt 0 ] && git diff --stat stash@{$n}~1..stash@{$n}; }; f"
st = status
stu = status --untracked-files=no
ss = stash save
sp = stash pop
co = checkout
root = !pwd
ll = log
ls = log --graph --pretty=format:'%C(yellow)%h%Creset%C(cyan)%d%Creset %s %Cgreen(%cr)%Creset %C(white)<%an>%Creset'
lsa = log --graph --pretty=format:'%C(yellow)%h%Creset%C(cyan)%d%Creset %s %Cgreen(%cr)%Creset %C(white)<%an>%Creset' --all
pr = reflog --pretty=format:'%C(yellow)%h%Creset%C(cyan)%Creset %gd %gs %Cgreen(%cr)%Creset %C(white)%Creset'
r = remote -v
[push]
default = simple
[diff]
tool = meld
algorithm = patience
[difftool]
prompt = false
[merge]
tool = meld
algorithm = patience
ff-only = true
[mergetool]
prompt = false
tool = meld
algorithm = patience
[rerere]
enabled = true
[core]
pager = less -+S
[pull]
rebase = true