-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgitconfig
65 lines (64 loc) · 1.28 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
# vim: syntax=gitconfig
[user]
name = Stefano Pigozzi
email = [email protected]
[color]
ui = auto
interactive = 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
[core]
excludesfile = ~/.gitignore
editor = nvim
[merge]
tool = opendiff
[mergetool "nvim"]
cmd=nvim -d -g $LOCAL $MERGED $REMOTE
keepbackup=false
[alias]
st = status
ci = commit
co = checkout
di = diff
dc = diff --cached
ca = commit --amend
cad = commit --amend --date=now
aa = add --all
ff = merge --ff-only
l = "!source ~/.githelpers && pretty_git_log"
la = !git l --all
r = !git l -20
ra = !git r --all
head = !git l -1
h = !git head
fa = fetch --all
pom = push origin master
b = branch
ds = diff --stat=160,120
dh1 = diff HEAD~1
wc = whatchanged -p --abbrev-commit --pretty=medium
pullify = config --add remote.origin.fetch '+refs/pull/*/head:refs/remotes/origin/pr/*'
[i18n]
commitencoding = UTF-8
logoutputencoding = UTF-8
[tig]
show-date = relative
author-width = 8
show-rev-graph = yes
[push]
default = simple
[pull]
rebase = true
[init]
defaultBranch = main