-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
58 lines (47 loc) · 1.3 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
[diff]
tool = vimdiff
guitool = meld
[difftool "vimdiff"]
cmd = vim -f -d -c \"wincmd l\" -c 'cd \"$GIT_PREFIX\"' \"$LOCAL\" \"$REMOTE\"
[merge]
tool = vimdiff
guitool = meld
[alias]
up = "!git pull && git submodule update --init"
sw = "!git_switch() { git checkout \"$@\" && git submodule update --init; }; git_switch"
ass = add
cc = "!cc() { cd \"$GIT_PREFIX\"; git diff --cached $@ | awk -f ~/scripts/gitchurn; }; cc"
c = "!c() { cd \"$GIT_PREFIX\"; git diff $@ | awk -f ~/scripts/gitchurn; }; c"
st = status
ci = commit
br = branch -vv
co = checkout
dc = diff --cached
dt = difftool -y -g
dtc = difftool -y -g --cached
vd = difftool
vdc = difftool --cached
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
who = shortlog -s --
undo = reset HEAD~1 --mixed
squash = rebase -i
wc = whatchanged
untrack = rm --cache --
amend = commit -a --amend
revert = "!rv() { if [ $# -eq 1 ]; then git diff \"$1:$1^\" | git apply; fi }; rv"
[clean]
requireForce = false
[user]
name = Justin Helgesen
email = [email protected]
[core]
pager = less -q
excludesfile = /home/justinh/.gitignore_global
[color]
ui = true
[push]
default = simple
[pull]
rebase = preserve
[branch]
autosetuprebase = always