-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitconfig
45 lines (45 loc) · 1.17 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
[core]
autocrlf = false
safecrlf = true
editor = EDITOR=/usr/bin/vim
editor = open -W -n
editor = /usr/bin/vim
excludesfile = ~/.gitignore
attributesfile = ~/.gitattributes
[alias]
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
c = commit -am
p = push
s = status -s
df = diff --color --color-words --abbrev
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold white)<%an>%Creset' --abbrev-commit --
undo = reset --hard HEAD~1
amend = commit --amend
ms = merge staging
md = merge develop
[color]
ui = always
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta
old = red bold
new = green bold
[color "status"]
added = yellow bold
changed = green
untracked = cyan
[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
[merge]
log = true
[user]
name = James Styles
email = [email protected]