aboutsummaryrefslogtreecommitdiff
path: root/files/.gitconfig
blob: e657f8f46fade6c8fe671b06f9ef3a9b09f44c4c (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
[user]
    name = Anton Bobov
    email = abobov@gmail.com
[http]
    sslVerify = false
[color]
    ui = auto
[diff]
    tool = vimdiff
[difftool]
    prompt = false
[grep]
    lineNumber = true
[merge]
    tool = vimdiff
    stat = true
[core]
    pager = less -+$LESS -FRX
    excludesfile = ~/.gitignore
[log]
    decorate = short
[alias]
    aa = add --all --intent-to-add
    ar = !sh -c 'git archive --format=tar --prefix="$(basename "$PWD")-$1/" $1^{tree} | bzip2 >"$(basename "$PWD")-$1.tar.bz2"' -
    br = branch
    c = commit --verbose
    co = checkout
    ci = commit
    diffstat = diff --stat -r
    fix = commit --amend -C HEAD
    history-all = "!gitk --all $( git fsck | awk '/dangling commit/ {print $3}'; git log -g --pretty='format:%H')"
    k =  !sh -c 'gitk $1' -
    ka = !sh -c 'gitk --all' -
    kb = !sh -c 'gitk --branches' -
    lg = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
    st = status
    addnw = !sh -c 'git diff --unified=0 --ignore-all-space --no-color "$@" | git apply --cached --ignore-whitespace --unidiff-zero -'
    branch-name = "!git rev-parse --abbrev-ref HEAD"
    publish = "!git push -u origin $(git branch-name)"
[advice]
    statusHints = false
[branch]
    autosetupmerge = always
    autosetuprebase = local
[rebase]
    instructionFormat = %s [%an] {%ar}
[rerere]
    enabled = true
[status]
    submoduleSummary = true
[help]
    autocorrect = 10
[credential]
    helper = netrc
[remote-hg]
    hg-git-compat = true
[filter "tabs"]
    ;clean = unexpand --tabs=4 --first-only
[gui]
    tabsize = 4