-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
54 lines (52 loc) · 1.61 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
[user]
name = Dmitriy Likhten
email = [email protected]
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = 1
[format]
pretty = fuller
[pull-requests]
source-branch = develop
[alias]
st = status
co = checkout
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
newcase = "!f() { git checkout resolved && git pull --rebase && git checkout -b case/$1; }; f"
logp = log -w -p --follow
wip = !git add -u && git commit -m "WIP"
undo-commit = reset --soft HEAD^
list-ignored = !git ls-files -v | grep \"^[[:lower:]]\"
github-location = "!f() { git remote -v | grep 'origin' | grep '(push)' | sed 's/.*[email protected]://' | sed 's/\\.git.*//'; }; f"
pull-request = !git push origin && open "https://github.com/`git github-location`/compare/`git config --get pull-requests.source-branch`...`git symbolic-ref --short HEAD`"
p = push origin
pf = push origin --force
pr = pull --rebase origin master
trigger = commit --allow-empty -m "trigger"
[mergetool]
keepBackup = true
[push]
default = current
[core]
excludesfile = /Users/dmitriy/.gitignore_global
[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
[help]
autocorrect = 10
[fetch]
prune = true
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[rebase]
autostash = true
[commit]
template = /Users/dmitriy/.stCommitMsg