]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - gitconfig.m4
9ffe45bde0d04440617dbf7df18f4f04f8d66878
[config/dotfiles.git] / gitconfig.m4
1 # Global Git configuration file.
2
3
4 dnl Load m4 macros.
5 include(../lib.m4)
6
7 [user]
8         name = Simon Ruderich
9         email = simon@ruderich.org
10
11 [color]
12         ui = auto
13
14 [core]
15         editor = vim
16         excludesfile = GITIGNORE
17
18         # Use pager for the following commands.
19 [pager]
20         status = yes
21         clean = yes
22
23 [alias]
24         # Shortcuts for often used commands.
25         c  = commit -v
26         ci = commit -v
27         d  = diff
28         di = diff
29         s  = status
30         st = status
31         l  = log
32         a  = add
33         co = checkout
34         b  = branch -av
35         br = branch -av
36         m  = merge
37         me = merge
38         f  = fetch
39         fe = fetch
40         t  = tag
41         p  = push
42         pu = push
43         # Custom commands.
44         fs = fsck --strict --full
45         glog = log --pretty=oneline --graph --all
46         ss = stash save
47         sa = stash apply
48         sl = stash list
49
50 [diff]
51         # Detect copies and renames.
52         renames = copy
53
54 [merge]
55 IF(OS, darwin)
56         tool = opendiff
57 FI
58 IF(OS, debian)
59         tool = vimdiff
60 FI
61
62 # vim: ft=gitconfig