forked from justone/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
64 lines (64 loc) · 1.43 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 = Tommy Stanton
email = [email protected]
[color]
branch = auto
status = auto
diff = auto
[color "diff"]
whitespace = red reverse
[core]
editor = /usr/bin/env vim
pager = less -SRX
attributesfile = ~/.gitattributes
[diff]
tool = vimdiff
renames = true
[difftool "vimdiff"]
cmd = vimdiff -o $LOCAL $REMOTE
[merge]
tool = diffconflicts
[branch]
autosetupmerge = true
[alias]
current-branch = rev-parse --abbrev-ref HEAD
cut-from = merge-base origin/master HEAD
l = log --no-decorate --pretty=oneline --abbrev-commit
lst = ls-tree --name-only -r
lsc = diff --name-only --diff-filter=U
# 'fb': "feature branch"
# 'np': "not pushed"
diff-fb = !git diff origin/master...
l-fb = !git l origin/master..
l-np = !git l origin/$(git current-branch)..
log-fb = !git log origin/master..
log-np = !git log origin/$(git current-branch)..
rebase-fb = !git rebase -i $(git cut-from)
# 'gl': GitLab
ci-gl-wiki = commit --allow-empty-message -m ''
[diff "json"]
textconv = json-diffable <
[diff "tar"]
textconv = tar ft
[diff "odf"]
textconv = odt2txt
[diff "doc"]
textconv = catdoc
[mergetool]
keepBackup = false
[pager]
log = diff-highlight | less
show = diff-highlight | less
diff = diff-highlight | less
[mergetool "diffconflicts"]
cmd = diffconflicts vim $BASE $LOCAL $REMOTE $MERGED
trustExitCode = true
keepBackup = false
[fetch]
prune = true
[rebase]
autosquash = true
[push]
default = simple
[rerere]
enabled = true