-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
74 lines (73 loc) · 2.87 KB
/
.gitconfig
File metadata and controls
74 lines (73 loc) · 2.87 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
# vim: ft=gitconfig
[sendemail]
multiedit = true
suppresscc = self
smtpserver = smtp.gmail.com
smtpserverport = 587
smtpencryption = tls
[color]
ui = true
[filemerge]
executable = vimdiff
[merge]
tool = vimdiff
ff = only
[core]
whitespace = error,trailing-space,cr-at-eol,-blank-at-eof,tab-in-indent
excludesfile = ~/.gitignore
editor = /usr/bin/vim
pager = /usr/bin/less -XRS -x4
[color "diff"]
whitespace = red reverse
[user]
name = Billy Monk
email = billy.monk@gmail.com
[gui]
fontui = -family Inconsolata -size 14 -weight normal -slant roman -underline 0 -overstrike 0
fontdiff = -family Inconsolata -size 14 -weight normal -slant roman -underline 0 -overstrike 0
[push]
default = simple
[grep]
extendedRegexp = true
patternType = perl
[gc]
autodetach = true
[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
ngrep = grep -A5 -B5
commit-amend = commit --amend -C HEAD
ca = !sh -c 'git commit-amend $@' -
cv = commit -v
show-stashes = "!sh -c 'if [ -n \"`git stash list`\" ]; then git show `git stash list --pretty=format:\"%gd\"`; else echo \"No stashes found\"; fi'"
show-unreachable = "!sh -c \"git fsck --unreachable | grep commit | awk '{print \\$3}' | xargs git show\" -"
frune = fetch --prune
locate = "!git ls-files | grep -i"
ocherry = "!sh -c 'BRANCH=${1:-`git rev-parse --abbrev-ref HEAD`}; git cherry -v $BRANCH origin/$BRANCH' -"
odiff = "!sh -c 'git diff $@ origin/${1:-`git rev-parse --abbrev-ref HEAD`}' -"
cleanup = "!git frune && git prune && git gc --aggressive"
dups = "!sh -c 'git log --no-merges --graph --pretty=format:'%s' ${1:-HEAD~1000}..HEAD | sort | uniq -c | sort -n' -"
pushup = "!sh -c 'git push --set-upstream ${1:-origin} `git rev-parse --abbrev-ref HEAD`' -"
find = "!git ls-files | grep -i"
[pack]
threads = 0
[branch]
autosetuprebase = always
[filter "trimWhitespace"]
clean = git-stripspace