-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig
43 lines (42 loc) · 1.08 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
# vim:ft=gitconfig:
[include]
path = ~/.gitlocalconfig
[user]
email = [email protected]
name = Andrei Glingeanu
[alias]
# Fancy logging.
# h = head
# hp = head with patch
# r = recent commits, only current branch
# ra = recent commits, all reachable refs
# l = all commits, only current branch
# la = all commits, all reachable refs
head = !git r -1
h = !git head
hp = "!. ~/.githelpers && show_git_head"
r = !GIT_NO_PAGER=1 git l -30
ra = !git r --all
l = "!. ~/.githelpers && pretty_git_log"
la = !git l --all
show-files = "!f() { git diff-tree --no-commit-id --name-only -r $1; }; f"
[push]
default = simple
[diff]
tool = diffmerge
[difftool "diffmerge"]
cmd = diffmerge \"$LOCAL\" \"$REMOTE\"
[merge]
tool = diffmerge
[mergetool "diffmerge"]
cmd = "diffmerge --merge --result=\"$MERGED\" \"$LOCAL\" \"$(if test -f \"$BASE\"; then echo \"$BASE\"; else echo \"$LOCAL\"; fi)\" \"$REMOTE\""
trustExitCode = true
[branch]
autosetuprebase = always
[core]
excludesfile = ~/.gitignore
autocrlf = input
[github]
user = andreiglingeanu
[gpg]
program = gpg