-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
32 lines (32 loc) · 1.03 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
[user]
name = Jerry Reptak
email = [email protected]
[core]
editor = vim
autocrlf = input
excludesfile = ~/.gitignore_global
pager = less -F -X
[pager]
log = true
[color]
ui = auto
[alias]
hub-clone = !sh -c 'git clone [email protected]:/$1/$2.git' -
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim `f`"
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
alias = !sh -c '[ $# = 2 ] && git config --global alias.\"$1\" \"$2\" && exit 0 || echo \"usage: git alias <new alias> <original command>\" >&2 && exit 1' -
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
exec = "!exec "
subup = "!exec git submodule update --init"
[merge]
tool = vimdiff
[web]
browser = /usr/bin/google-chrome
[push]
default = simple
[diff]
tool = vimdiff
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =