-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_gitconfig
61 lines (59 loc) · 1.25 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
[color]
diff = auto
status = auto
branch = auto
ui = true
[color "branch"]
current = green bold
remote = red bold
[color "diff"]
meta = yellow
frag = cyan bold
old = red bold
new = green bold
[color "status"]
added = green bold
changed = red bold
untracked = red bold
[push]
default = simple
[core]
editor = /usr/bin/vim
page = less -R
pager = less -+$LESS -FRX
excludesfile = ~/.gitignore
[format]
pretty = format:%C(yellow)%h %C(green)%ad %C(red)%d%C(reset) %s %C(blue)[%an]%C(reset)
[alias]
br = branch
ci = commit
co = checkout
df = diff
ds = diff --staged
fe = fetch
lg = log --date=short
gr = log --graph --date=short
gra = log --graph --date=short --all
mg = merge
pdf = diff @{1}..
ps = push
pu = pull
sh = stash
st = status -sb
wd = diff --color-words
wdiff = diff --color-words
undo = reset --soft HEAD^
amend = commit --amend -C HEAD
check = !"git diff @{1}..HEAD --name-status"
last = diff @{1}..
# alias gi to git for typos (eg: 'gi tst' instead of 'git st')
tst = status
[include]
path = ~/.private/github
[merge]
tool = vimdiff
conflictstyle = diff3
[status]
displayCommentPrefix = true
[pull]
rebase = false