-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgitconfig
More file actions
172 lines (147 loc) · 4.93 KB
/
gitconfig
File metadata and controls
172 lines (147 loc) · 4.93 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
[user]
name = Wojtek Majewski
email = jumski@gmail.com
[alias]
ci = commit
cim = !git-cim
wip = !git-cim 'wip'
s = status -sb
c = checkout
ps = push
pr = !sh -c 'git fetch origin pull/$0/head:pr-$0 && git checkout pr-$0'
amend = commit --amend
unstage = reset HEAD # removes files from index
uncommit = reset --soft HEAD^
clfd = clean -fd
ignore = !git reset -- $1 && echo "$1" >> .gitignore && git add .gitignore
d = diff
wd = diff --word-diff=color
dc = diff --cached
b = branch
ba = branch -a
l = log
yesterday = log --pretty=format:\"%Cgreen%h%Creset %Cblue%ad%Creset %s%C(yellow)%d%Creset %Cblue[%an]%Creset\" --graph --date=short --after=yesterday --author=Wojtek
today = log --pretty=format:\"%Cgreen%h%Creset %Cblue%ad%Creset %s%C(yellow)%d%Creset %Cblue[%an]%Creset\" --graph --date=short --since='1 Day Ago' --date=relative --author=Wojtek
cap = !git commit && git push && cap deploy
mina = !git push && mina staging deploy
staging = !git push && mina staging deploy
deploy = !git pull --rebase && git push && cap deploy
chr = cherry -v
rmt = remote -v
wc = whatchanged --oneline
lp = log -p
hist = log --pretty=format:\"%Cgreen%h%Creset %Cblue%ad%Creset %s%C(yellow)%d%Creset %Cblue[%an]%Creset\" --graph --date=short
h = log --pretty=format:\"%Cgreen%h%Creset %Cblue%ad%Creset %s%C(yellow)%d%Creset %Cblue[%an]%Creset\" --graph --date=short
dstat = diff --stat
wtf = !git-wtf
trail = !git-trail
neck = !git-neck
churn = !git-churn
recent-branches = !git for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname)' refs/heads refs/remotes
head-sha = ! git log --pretty=format:'%h' -n 1
copy-head-sha = ! git log --pretty=format:'%h' -n 1 | xclip -sel clipboard
hierarchy = log --all --graph --decorate --oneline --simplify-by-decoration
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
conflicts = !git ls-files -u | cut -f 2 | sort -u
resolve = !vim -p $(git conflicts)
ours = checkout --ours
theirs = checkout --theirs
stats = !git-stats
rank = !git-rank-contributors
new = ls-files --others --exclude-standard
done = !git-done
ribbon = tag --force _ribbon origin/master
catchup = log --patch --reverse --topo-order _ribbon..origin/master
ctags = !.git/hooks/ctags
binstubs = !.git/hooks/install-binstubs
good = bisect good
bad = bisect bad
next =!git add . && git rebase --continue
skip = rebase --skip
gemfile = !git checkout --ours Gemfile.lock && bundle && git add Gemfile.lock
schema = !git checkout --ours db/schema.rb && bundle exec rake db:migrate && git add db/schema.rb
up = !git fetch origin && git rebase origin/master
aa = add .
ap = add -p
plre = pull --rebase
ff = merge --ff-only
noff = merge --no-ff
prune-remotes = remote prune origin
nuke = !git-nuke
pfwlease = push --force-with-lease
axe = !git-axe
axer = !git-axer
ftp = !git-ftp
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
list-assumed = !git ls-files -v `git rev-parse --show-toplevel` | grep "^[a-z]" | cut -c3-
hotfix = !git-hotfix
circle = !git-circle
[branch]
# set up git pull to do a rebase instead of merge
autosetuprebase = always
[giggle]
main-window-maximized = true
main-window-geometry = 0x0+0+0
history-view-vpane-position = 577
main-window-view = HistoryView
[push]
default = current
[interactive]
singlekey = true
[color]
branch = auto
diff = auto
interactive = auto
status = auto
[color "diff"]
commit = green
meta = yellow
frag = cyan
old = red
new = green
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[core]
autocrlf = input
whitespace = trailing-space,cr-at-eol
excludesfile = /home/jumski/.gitignore_global
;pager = /usr/share/doc/git/contrib/diff-highlight/diff-highlight | less
[github]
user = jumski
[dude]
interval = 30
icon = /home/jumski/dotfiles/vendor/icons/github-icon.png
[init]
templatedir = /home/jumski/dotfiles/git_template
# url shortcuts
[url "git@heroku.com:"]
insteadOf = heroku:
[url "git://github.com/"]
# Read-only
insteadOf = gh:
[url "git@github.com:"]
# With write access
insteadOf = wgh:
[web]
browser = google-chrome
; [merge]
; tool = vimdiff
; conflictstyle = diff3
; [transfer]
; fsckobjects = true
; [fetch]
; fsckobjects = true
; [receive]
; fsckObjects = true
[mergetool "fugitive"]
cmd = vim -f -c \"Gvdiff\" \"$MERGED\"
[merge]
tool = fugitive
[rerere]
enabled = true