]> git.phdru.name Git - dotfiles.git/blob - .gitconfig
.gitconfig: add push2all alias to push to all remotes
[dotfiles.git] / .gitconfig
1 [alias]
2         alias = "!f() { [ $# = 2 ] && git config --global alias.\"$1\" \"$2\" && return 0 || echo \"Usage: git alias <new alias> <original command>\" >&2 && return 1; }; f"
3         aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
4         b = branch
5         branches = branch --all
6         cat = cat-file -p
7         dump = cat-file -p
8         file = cat-file -t
9         type = cat-file -t
10         camend = commit --amend --no-edit
11         checkin = commit
12         ci = commit
13         co = checkout
14         d = diff
15         dc = diff --cached
16         dshow = show --decorate
17         incoming = !git remote update --prune; git log ..@{upstream}
18         l = log --decorate
19         l1 = log --decorate --oneline
20         l5 = log --decorate -5
21         lg = log --decorate --graph
22         lg1 = log --decorate --graph --oneline
23         lg5 = log --decorate --graph -5
24         lr = log --decorate --reverse
25         lr1 = log --decorate --reverse --oneline
26         lr5 = log --decorate --reverse -5
27         null-merge = merge --strategy=ours
28         outgoing = log @{upstream}..
29         push2all = !git remote | xargs -I% -n1 git push %
30         remotes = remote -v
31         ri = "!f() { git rebase --interactive --autosquash --preserve-merges ${1:-\"@{upstream\\}\"}; }; f"
32         #root = !pwd
33         root = rev-parse --show-toplevel
34         st = status --short
35         stb = status --short --branch
36         tags = tag --list
37         unstage = reset HEAD --
38         wdiff = diff --word-diff
39         wshow = show --word-diff --decorate
40
41 [branch]
42         autosetuprebase = always
43
44 [color]
45         ui = auto
46
47 [include]
48         path = ~/lib/config/git/light_bg
49
50 [log]
51         abbrevCommit = true
52
53 [merge]
54         tool = vimdiff
55
56 #[mergetool "vimdiff3"]
57 # Don't forget to add -f for gvim
58 # 3 way diffs
59 #       cmd = vim -d \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\" -c \"wincmd J\"
60
61 [push]
62         default = simple
63
64 [receive]
65         denyNonFastForwards = true
66
67 [web]
68         browser = webbrowser
69
70 [browser "webbrowser"]
71         cmd = webbrowser -n
72
73 [gui]
74         fontui = -family \"DejaVu Sans\" -size 18 -weight normal -slant roman -underline 0 -overstrike 0
75         fontdiff = -family \"DejaVu Sans Mono\" -size 18 -weight normal -slant roman -underline 0 -overstrike 0