summaryrefslogtreecommitdiffstats
path: root/.gitconfig
blob: 98bb2fc6cbeda1c3cf09cbecf4ab93f76c3f161d (plain) (blame)
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
[user]
    name = Amin Bandali
    email = bandali@gnu.org
    signingkey = BE6273738E616D6D1B3A08E8A21A020248816103

[commit]
    gpgsign = true

# [format]
#     signoff = true

[core]
    autocrlf = input  # CRLF -> LF on commit
    editor = emacsclient -t
    excludesfile = ~/.gitignore_global
    pager = "less"

[gpg]
    program = gpg2

[alias]
    git = !exec git  # handle nested git calls, e.g. git git status
    aliases = config --get-regexp '^alias\\.'
    a = add
    s = status
    sl = status --long
    c = checkout
    cb = checkout -b
    b = branch
    r = rebase
    p = pull
    pr = pull --rebase
    ps = push
    psf = push --force
    nmam = "!f() { notmuch show --format=raw $1 | git am -; }; f"
    nmam3 = "!f() { notmuch show --format=raw $1 | git am -3 -; }; f"

[color]
    ui = auto
[color "status"]
    added = green bold
    changed = red bold
    untracked = red bold
[color "branch"]
    current = green bold
    remote = magenta bold
[color "diff"]
    new = green bold
    old = red bold

[status]
    # showUntrackedFiles = all
    short=true
    branch=true

[github]
	user = aminb

[sendemail]
	smtpuser = bandali
	smtpserver = fencepost.gnu.org
	smtpserverport = 587
	smtpencryption = tls
	annotate = yes