forked from tschanzt/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
70 lines (55 loc) · 2.44 KB
/
gitconfig
File metadata and controls
70 lines (55 loc) · 2.44 KB
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
69
70
[user]
name = Jonas Baumann
email = jone@jone.ch
signingkey = C92518B2
[core]
excludesfile = ~/.gitignore
editor = /usr/local/bin/emacsclient
autocrlf = input
whitespace = tabwidth=4,tab-in-indent,cr-at-eol,trailing-space
pager = less -F -X
[color]
ui = true
[commit]
gpgsign = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[apply]
whitespace = nowarn
[format]
pretty = %C(blue)%h%Creset %s %C(green)%d%Creset [%C(red)%an%Creset, %C(cyan)%cr%Creset] %C(bold reverse)%N%Creset
[github]
user = jone
[mergetool.ediff]
cmd = /usr/local/Cellar/emacs/HEAD/Emacs.app/Contents/MacOS/bin/emacsclient --eval \"(progn (defun ediff-write-merge-buffer () (let ((file ediff-merge-store-file)) (set-buffer ediff-buffer-C) (write-region (point-min) (point-max) file) (message \\\"Merge buffer saved in: %s\\\" file) (set-buffer-modified-p nil) (sit-for 1))) (setq ediff-quit-merge-hook 'ediff-write-merge-buffer) (ediff-merge-files-with-ancestor \\\"$LOCAL\\\" \\\"$REMOTE\\\" \\\"$BASE\\\" nil \\\"$MERGED\\\"))\"
[mergetool]
prompt = false
[merge]
tool = ediff
ff = false
[push]
default = tracking
[branch]
autosetuprebase = always
[rerere]
enabled = 0
[advice]
statusHints = false
detachedHead = false
[alias]
weburl = !git config --get remote.origin.url | sed -e 's/git:\\/\\/github.com/https:\\/\\/github.com/' -e 's/git@github.com:/https:\\/\\/github.com\\//' -e 's/\\.git$//' -e 's/gitolite@git.4teamwork.ch:\\(.*\\)/https:\\/\\/git.4teamwork.ch\\/?p=\\1.git/'
browse = !open `git weburl`
merge-diff = !sh -c 'git diff "$1^1"..."$1^2" "$@"' -
rcp = !git config --get remote.origin.url | tr -d '\n' | pbcopy
bcp = !git rev-parse --abbrev-ref HEAD | tr -d '\n' | pbcopy
pull-request-for = "!f() { git log $1.. --merges --pretty="%s" | tail -n1 | awk '{print "$4"}' | sed -e 's:#::'; }; f"
open-pull-request-for = "!f() { open `git weburl`/pull/`git pull-request-for $1`; }; f"
ssh = !open-ssh-by-git-remote
fixup = commit --amend -C HEAD
push-deploy = push --no-verify
sed = !sh -c 'git grep -l "$0" | xargs sed -i \"\" -e "s/$0/$1/g"'
push-to-pr = !git push origin -u `git rev-parse --abbrev-ref HEAD` && open `git weburl`/pull/new/`git rev-parse --abbrev-ref HEAD`
test = !test-changed "$@"