Sun, 31 May 2020 11:33:41 -0500
keep these in git-helpers
93
f8612a811de0
Merge .gitconfig from mhoward-lt(92aa984868e2)
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
1 | [user] |
f8612a811de0
Merge .gitconfig from mhoward-lt(92aa984868e2)
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
2 | email = mhoward@roomag.org |
f8612a811de0
Merge .gitconfig from mhoward-lt(92aa984868e2)
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
3 | name = Meredith Howard |
f8612a811de0
Merge .gitconfig from mhoward-lt(92aa984868e2)
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
4 | |
721 | 5 | [github] |
6 | user = merrilymeredith | |
7 | ||
93
f8612a811de0
Merge .gitconfig from mhoward-lt(92aa984868e2)
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
8 | [alias] |
541 | 9 | ci = commit |
10 | rec = commit -p | |
11 | unrec = checkout --patch | |
12 | amend = commit -p --amend | |
13 | st = status -sb | |
14 | co = checkout | |
15 | br = branch | |
16 | staged = diff --cached | |
17 | unstage = reset HEAD -- | |
540
c51f6fc7c727
add rollback, more hg riffs!
Meredith Howard <mhoward@roomag.org>
parents:
531
diff
changeset
|
18 | rollback = reset --soft ^HEAD |
541 | 19 | up = pull -r --prune |
20 | update = "!git remote update -p && git merge --ff-only --stat @{u}" | |
21 | in = "!git remote update -p; git log --pretty=onelinecustom ..@{u}" | |
22 | out = "!git log --pretty=onelinecustom @{u}.." | |
23 | new = "!git log --pretty=onelinecustom $1@{1}..$1@{0}" | |
24 | cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 echo git branch -d" | |
25 | glog = log --graph --pretty=onelinecustom | |
789 | 26 | recent = "!f() { git for-each-ref --count=20 --sort=-committerdate --format=\"%(committerdate:short) %(refname:short)\" ${1:-refs/heads} ${@:2}; }; f" |
228
bf3429214b78
Nice up log output in a few places
Meredith Howard <mhoward@roomag.org>
parents:
212
diff
changeset
|
27 | |
792 | 28 | [pretty] |
29 | onelinecustom = tformat:%C(magenta)%h%Creset %G? -%C(yellow)%d%Creset %s %C(green)(%cr)%Creset %C(cyan)<%an>%Creset | |
30 | ||
31 | [ui] | |
32 | color = true | |
33 | ||
34 | [core] | |
35 | pager = LESS=FSRXi less | |
36 | ||
37 | [gpg] | |
38 | program = "gpg2" | |
39 | ||
40 | [merge] | |
41 | tool = vimdiff2 | |
42 | ||
166
7d0c758c7a4d
default to rebase w/ pull
Meredith Howard <mhoward@roomag.org>
parents:
93
diff
changeset
|
43 | [branch] |
7d0c758c7a4d
default to rebase w/ pull
Meredith Howard <mhoward@roomag.org>
parents:
93
diff
changeset
|
44 | autosetuprebase = always |
196
29fce4f498e5
Update gitconfig alases
Meredith Howard <mhoward@roomag.org>
parents:
190
diff
changeset
|
45 | autosetupmerge = always |
177 | 46 | |
629 | 47 | [commit] |
48 | verbose = true | |
49 | gpgsign = true | |
50 | ||
51 | [diff] | |
52 | compactionheuristic = true | |
53 | ||
177 | 54 | [push] |
196
29fce4f498e5
Update gitconfig alases
Meredith Howard <mhoward@roomag.org>
parents:
190
diff
changeset
|
55 | default = current |
177 | 56 | |
57 | [rebase] | |
58 | stat = true | |
173
757eaebee0a2
add include .gitconfig.local
Meredith Howard <mhoward@roomag.org>
parents:
166
diff
changeset
|
59 | |
791 | 60 | [rerere] |
61 | enabled = true | |
62 | autoupdate = true | |
63 | ||
629 | 64 | [transfer] |
65 | fsckobjects = true | |
494
d6d298c93437
I like verbose commits
Meredith Howard <mhoward@roomag.org>
parents:
492
diff
changeset
|
66 | |
186 | 67 | # include.path is available in git 1.7.10 and later |
173
757eaebee0a2
add include .gitconfig.local
Meredith Howard <mhoward@roomag.org>
parents:
166
diff
changeset
|
68 | [include] |
757eaebee0a2
add include .gitconfig.local
Meredith Howard <mhoward@roomag.org>
parents:
166
diff
changeset
|
69 | path = ~/.gitconfig.local |
757eaebee0a2
add include .gitconfig.local
Meredith Howard <mhoward@roomag.org>
parents:
166
diff
changeset
|
70 | |
228
bf3429214b78
Nice up log output in a few places
Meredith Howard <mhoward@roomag.org>
parents:
212
diff
changeset
|
71 | # vim: noet:sw=8 |