forked from robmiller/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
98 lines (81 loc) · 2.27 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[user]
name = Rob Miller
email = rob@bigfish.co.uk
[core]
excludesfile = ~/.gitignore
quotepath = false
pager = less -x4
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow
frag = magenta
old = red
new = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
st = status -sb
ci = commit
br = branch
co = checkout
df = diff --color-words
dc = diff --cached
lp = log -p --abbrev-commit --color-words
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = log --stat --abbrev-commit
l = log --oneline --abbrev-commit
lg = log --abbrev-commit --decorate
ds = diff --stat
code-review = difftool origin/master...
log-merges = log --abbrev-commit --decorate --merges --first-parent
unstage = reset HEAD
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
ours = "!f() { git co --ours $@ && git add $@; }; f"
theirs = "!f() { git co --theirs $@ && git add $@; }; f"
dl = "!git lg -p -1"
diffc = diff --cached
oldest-ancestor = !zsh -c 'diff -u <(git rev-list --first-parent "${1:-master}") <(git rev-list --first-parent "${2:-HEAD}") | sed -ne \"s/^ //p\" | head -1' -
pusha = push --all
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
switch = !legit switch \"$@\"
branches = !legit branches
sprout = !legit sprout \"$@\"
unpublish = !legit unpublish \"$@\"
harvest = !legit harvest \"$@\"
sync = !legit sync \"$@\"
publish = !legit publish \"$@\"
graft = !legit graft \"$@\"
conflicts = !git ls-files -u | cut -f 2 | sort -u
[branch]
autosetupmerge = true
autosetuprebase = always
[push]
default = tracking
[diff]
tool = Kaleidoscope
[merge]
conflictstyle = diff3
summary = true
tool = Kaleidoscope
[mergetool]
keepBackup = true
prompt = false
[difftool "Kaleidoscope"]
cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\"
[difftool]
prompt = false
[mergetool "Kaleidoscope"]
cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot