-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
68 lines (55 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
66
67
68
[user]
name = Sullivan SENECHAL
email = [email protected]
signingkey = FD4E6361
[alias]
amend = commit --amend
f = fetch --all --prune --tags --prune-tags
df = diff
dfc = diff --cached
d = diff
dc = diff --cached
co = checkout
ci = commit
br = branch
t = tag
who = shortlog -sne
oneline = log --pretty=oneline --abbrev-commit --decorate --graph
changes = diff --name-status
dic = diff --cached
diffstat = diff --stat
lc = !git oneline ORIG_HEAD.. --stat --no-merges
addm = !git-ls-files -m -z | xargs -0 git-add && git status
addu = !git-ls-files -o --exclude-standard -z | xargs -0 git-add && git status
rmm = !git ls-files -d -z | xargs -0 git-rm && git status
# https://github.com/caarlos0/git-add-remote
add-upstream = !zsh -ic \"add-upstream $*\"
add-remote = !zsh -ic \"add-remote $*\"
[color]
ui = true
[fetch]
prune = true
[commit]
gpgsign = true
[push]
default = simple
[tag]
# @see https://stackoverflow.com/a/22634649/1731473
sort = -v:refname
[credential]
helper = cache --timeout=3600
[core]
editor = vim
excludesfile = ~/.gitignore_global
[pager]
log = diff-highlight | emojify | less
show = diff-highlight | less
diff = diff-highlight | less
[ghq]
root = ~/p
[gpg]
program = /usr/bin/gpg2
[pull]
rebase = false
[init]
defaultBranch = main