-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
62 lines (61 loc) · 2.06 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
50
51
52
53
54
55
56
57
58
59
60
61
62
[user]
name = [username]
email = [email]
[core]
ignorecase = true
excludesfile = /Users/[username]/.gitignore_global
editor = /Applications/Sublime\\ Text.app/Contents/SharedSupport/bin/subl -w
[pull]
rebase = true
[push]
default = current
[credential]
help = osxkeychain
[branch "master"]
remote = origin
merge = refs/heads/master
[color]
ui = auto
interactive = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
br = branch
f = fetch
co = checkout
ci = commit
st = status
pp = "!git branch | grep '^*' | sed 's/^* //g' | xargs -I{} git pull upstream {}; git push"
fap = fetch --all --prune
psh = push
cp = cherry-pick
com = checkout master
cod = checkout develop
cor = checkout release
rom = reset origin/master --hard
lp = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %C(magenta)%cn%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
lp2 = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
branchdate = !git for-each-ref --sort='-authordate' --format='%(refname)%09%(authordate)' refs/heads | sed -e 's-refs/heads/--'
logg = log --graph
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
lgy = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %C(magenta)%cn%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative --since='1 day ago' --author=nikita
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[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