-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
72 lines (72 loc) · 1.9 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
[user]
name = Chris Petersen
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = $HOME/.gitignore
[http]
sslVerify = false
[branch]
autosetupmerge = true
[push]
default = tracking
[pull]
default = rebase
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[merge]
tool = vimdiff
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[color]
branch = auto
diff = auto
status = auto
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "grep"]
context = normal
filename = magenta
function = cyan
linenumber = green
match = green
selected = normal
separator = cyan
[color "status"]
added = green
changed = yellow
untracked = cyan
[alias]
br = branch
ci = commit
co = checkout
dc = diff --cached
dif = diff
mergenoff = merge --no-ff
st = status
stat = status
# Cleanup
cleanup = !git_cleanup # remove already-merged branches that have not changed in a month
pruneall = "!git fetch origin --prune --tags -f; git remote prune origin"
# Search/Log
logn = log --decorate --name-status
logp = log --patch
new = "!git log $(ref=$(git symbolic-ref HEAD); echo $(git config -z --get branch.${ref##refs/heads/}.remote)/$(rbranch=$(git config --get branch.${ref##refs/heads/}.merge); echo ${rbranch##refs/heads/})).."
only = !git_only
wheres=branch -a --contains
# branch per feature: https://rubygems.org/gems/git_bpf
newqa="!_git-bpf recreate-branch qa"
forceqa=push --force origin qa
[credential]
helper = osxkeychain
[rerere]
enabled = true