-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
30 lines (29 loc) · 1.41 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
[user]
name = Will Weaver
email = [email protected]
[push]
default = simple
[core]
editor = /usr/local/bin/nvim
excludesfile = /Users/wweaver/.gitignore_global
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
tidy = !git remote prune origin && git branch -r --merged master | egrep -v 'master|staging$' | sed 's%origin/%%' | xargs -I% git push origin :% && git branch --merged master | egrep -v 'master|staging$' | xargs git branch -d
amend = commit --amend
branch-log = !git for-each-ref --sort=committerdate refs/remotes/ --format='%(HEAD) %(color:red)%(objectname:short)%(color:reset)|||%(color:yellow)%(refname:short)%(color:reset)|||(%(color:green)%(committerdate:relative)%(color:reset))|||%(authorname)|||%(contents:subject)' | column -t -s '|||'
amend-force-push =!git add . && git commit --amend --no-edit && git push origin $(git rev-parse --abbrev-ref HEAD) -f
[web]
browser = safari
[browser "safari"]
cmd = open -a /Applications/Safari.app
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f