-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
59 lines (58 loc) · 1.81 KB
/
gitconfig
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
[init]
templatedir = ~/.git_template
[push]
default = current
[color]
ui = auto
[alias]
aa = add --all
ap = add --patch
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
ci = commit -v
cleanup-merged = !git branch --merged master | grep -v "\\*" | grep -v "master" | xargs -n 1 git branch -d
co = checkout
cob = "!f() { git checkout -b $USER/$1; }; f"
fall = !for remote in $(git remote); do echo Fetching $remote; git fetch $remote; done
glog = log -E -i --grep
mup = !git checkout master && git cleanup-pruned origin && git pull && git checkout -
pf = push --force-with-lease
recommit = commit -eF .git/COMMIT_EDITMSG
rr = !git shortlog -sn --since='-1 month' master | cut -f 2- | gshuf -n 1
sla = log --oneline --decorate --graph --all
st = status
uncommit = reset --soft HEAD^
unstage = reset
wip = !git add . && git commit -nm 'WIP'
# Quote / unquote a sh command, converting it to / from a git alias string
# https://stackoverflow.com/questions/38057261
quote-string = "!read -r l; printf \\\"!; printf %s \"$l\" | sed 's/\\([\\\"]\\)/\\\\\\1/g'; printf \" #\\\"\\n\" #"
quote-string-undo = "!read -r l; printf %s \"$l\" | sed 's/\\\\\\([\\\"]\\)/\\1/g'; printf \"\\n\" #"
[core]
excludesfile = ~/.gitignore
autocrlf = input
preloadindex = true
deltabasecachelimit = 4g
[feature]
manyfiles = true
[merge]
ff = only
[commit]
template = ~/.gitmessage
verbose = true
[fetch]
prune = true
[rebase]
autosquash = true
[diff]
colorMoved = zebra
[branch]
sort = -committerdate
[credential]
helper = osxkeychain
[help]
autocorrect = 1
[user]
name = Robert Eshleman
email = [email protected]
[include]
path = ~/.gitconfig.local