aboutsummaryrefslogtreecommitdiffhomepage
path: root/gitconfig
blob: a7b23a390538042bafafbc73bcc2a25bf0e1381b (plain)
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
[user]
    email = pham@topo.tw
    name = Hsieh Chin Fan
    signingkey = 6DD8C14A

[sendemail]
	smtpserver = mail.topo.tw
	smtpuser = pham
	smtpencryption = tls
	smtpserverport = 587

[gpg]
	program = gpg2

[alias]
    adog = "!git log --abbrev --decorate --oneline --graph"
    reorder = "!GIT_SEQUENCE_EDITOR=\"sed -i -n 'h;1n;2p;g;p'\" git rebase -i HEAD~2"
    stashstaged = !git stash --keep-index && \
                   git stash && \
                   git stash apply stash@{1} && \
                   git stash show -p | git apply -R && \
                   git stash drop stash@{1}
    swapprotocol = !swap-protocol.bash
    mergethis = "!f() { git commit-tree HEAD: -p $1 -p HEAD -m \"Merge branch $(git branch --show-current)\" | xargs git branch --force $1; }; f"

[merge]
    tool = vimdiff

[pull]
    ff = only

[filter "lfs"]
	process = git-lfs filter-process
	required = true
	clean = git-lfs clean -- %f
	smudge = git-lfs smudge -- %f

[receive]
	denyCurrentBranch = false

[core]
	excludesFile = /srv/git/www/gitignore

[safe]
	directory = ~/Downloads/recall171