-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
49 lines (48 loc) · 1.31 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
[user]
email = <your email>
name = <your name>
[color]
diff = auto
status = auto
ui = true
branch = auto
interactive = auto
[alias]
st = status
ci = commit
cm = commit -m
cmd= commit --amend
df = diff
co = checkout
br = branch
mg = merge
rs = reset
rollback = reset --soft HEAD^
sh = stash
ush = stash pop
last = log -1 HEAD
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=relative
lg = !"git lg1"
lg1 = log --graph --pretty=format:'%Cblue%h%Creset %an%Creset | %s %Cgreen(%cr)%Creset%C(yellow)%d%Creset' --abbrev-commit --date=relative
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(blue)%h%C(reset) - %C(bold)%an%C(reset) (%ai)%C(reset)%C(bold red)%d%C(reset)%n'' %C(white)%s%C(reset)' --all
type = cat-file -t
dump = cat-file -p
[core]
editor = vim
[credential]
helper = osxkeychain
[filter "media"]
clean = git media clean %f
smudge = git media smudge %f
required = true
[merge]
tool = p4mergetool
[mergetool "p4mergetool"]
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge $PWD/$BASE $PWD/$LOCAL $PWD/$REMOTE $PWD/$MERGED
trustExitCode = false
[mergetool]
keepBackup = false
[diff]
tool = p4mergetool
[difftool "p4mergetool"]
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge $LOCAL $REMOTE