-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
40 lines (40 loc) · 1.49 KB
/
gitconfig
File metadata and controls
40 lines (40 loc) · 1.49 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
[user]
name = Alex Aitken
email = alex@alexaitken.com
[core]
excludesfile = ~/.gitignore_global
editor = vim --noplugin
[alias]
stat = status
co = checkout
ws = diff-index --color --check HEAD
dcommit = svn dcommit
p-log = log --patch --parents
f-log = whatchanged --graph --parents
q-log = log --no-merges --graph --pretty=format:'%Cred%h%Creset - %C(green)%aN%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset'
m-log = log --graph --pretty=format:'%Cred%h%Creset - %C(green)%aN%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset'
c-log = !sh -c 'git q-log --cherry-mark HEAD..$@' -
s-log = stash list --pretty=format:'%Cred%gd - %h%Creset - %C(green)%aN%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset'
svn-diff = diff remotes/git-svn
x = !sh -c 'gitx'
grep-all = !sh -c 'git rev-list --all | xargs git grep \"${1}\"' -
whois = !sh -c 'git log -i -1 --pretty=\"format::%an <%ae>\n\" --author=\"$1\"' -
up = "!sh -c 'if [ -d .git/svn ]; then git svn rebase; else git pull --rebase $@; fi' -"
cp = cherry-pick
commit = commit --verbose
igrep = grep --no-index
commit-amend = commit --amend -C HEAD
ca = !sh -c 'git commit-amend $@' -
ri = !sh -c 'git rebase -i HEAD~$@' -
[color]
ui = auto
[branch]
autosetuprebase = always
[push]
default = simple
[pull]
rebase = true
[remote "origin"]
prune = true
[gui]
recentrepo = /Users/alexaitken/projects/kit