-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
62 lines (52 loc) · 1.42 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
[core]
excludesfile = ~/.gitignore_global
quotepath = false
[user]
name = John Doe
email = john@doe.com
[color]
ui = auto
diff = auto
status = auto
branch = auto
interactive = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[alias]
s = status
co = commit
ca = commit --amend
b = branch -v
c = checkout
l = log --pretty=format:'%Cred%h%Creset | %Cgreen%s%Creset [%ar by %an]'
g = log --all --graph --decorate --oneline
graph = log --all --graph --decorate --oneline
last = log -1 HEAD
upstream = log --oneline master..origin/master
pending = log --oneline origin/master..master
pr = pull --rebase
pfff = push --force
rc = rebase --continue
rs = rebase --skip
ra = rebase --abort
mt = mergetool
stats = shortlog -s -n --no-merges
standup = !"git log --reverse --branches --since='$(if [[ "Mon" == "$(date +%a)" ]]; then echo "last friday"; else echo "yesterday"; fi)' --author=$(git config --get user.email) --format=format:'%C(cyan) %ad %C(yellow)%h %Creset %s %Cgreen%d' --date=local"
[merge]
ff = false
[push]
default = simple
[pull]
ff = only
[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
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true