forked from matthewtodd/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig.sym
58 lines (55 loc) · 1.83 KB
/
gitconfig.sym
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
[user]
name = Michael Hale
email = [email protected]
[alias]
# log HEAD@{upstream}.. isn't working for me. Not sure why yet.
logs = !git log --find-copies-harder --summary
out = !git log --boundary $(git rev-list --max-count=1 --simplify-by-decoration HEAD^)..
nb = !echo v$(( $(git br -r |grep v| awk -F '/v' '{print $2}'|sort -n|tail -n1) + 1))
st = status -s
ci = commit
co = checkout
br = branch
spull = !git svn fetch && git svn rebase
spush = !git svn dcommit
headless = !sh -c 'git symbolic-ref HEAD refs/heads/$0 && rm .git/index && git clean -fdx'
wdiff = diff --color-words
m = merge --no-ff
cleanbranches = !~/.bin/git_clean_branches.sh
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short -10
# Shows the last tag on API.
lasttag = !"$(git fetch origin &> /dev/null)" && git describe --abbrev=0 --tags origin
# Shows the merge commits for everything on master since the last tag.
ready = "!git log $(git lasttag)..master --first-parent"
# Shows all the files that have changed since the last tag.
readyfiles = "!git diff --name-status $(git lasttag)..master"
[color]
branch = auto
diff = auto
status = auto
ui = auto
[apply]
whitespace = fix
[core]
whitespace = fix
excludesfile = ~/.gitignore
[format]
pretty = format:%Cgreen%h%Creset %an %C(yellow)%d%Creset %s %C(cyan)%ar%Creset
#[diff]
# external = ~/bin/git-diff-driver.sh
[push]
default = tracking
[branch]
autosetuprebase = always
# [rerere]
# enabled = 1
[include]
path = ~/.gitconfig_private
[credential]
helper = osxkeychain
[diff]
renames = copy
[hub]
protocol = https
[init]
defaultBranch = master