-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitconfig-shared
46 lines (44 loc) · 1.47 KB
/
.gitconfig-shared
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
[color]
status = auto
diff = auto
branch = auto
[alias]
ci = commit -a
co = checkout
ll = log -p
st = status
tree = log --graph --decorate --pretty=oneline --abbrev-commit --all
browse-file = !sh -c 'hub browse -- blob/master/$1' -
browse-commit = !sh -c 'hub browse -- commit/$1' -
cob = "!git checkout -b $1 && git push -u origin"
delete-merged = "!git fetch origin && git branch -d $(git branch --merged | grep -v '*' | grep -v master) 2>&1 | grep -v fatal"
local-branches = !git branch -vv | cut -c 3- | awk '$3 !~/\\[/ { print $1 }'
track-upstream = "!git push -u origin `git rev-parse --abbrev-ref HEAD`"
pb-last-commit = "!git log -1 --pretty=%B | pbcopy"
pc = "!git push origin `git rev-parse --abbrev-ref HEAD`"
pr = "!cat .github/PULL_REQUEST_TEMPLATE.md PULL_REQUEST_TEMPLATE.md 2>/dev/null | hub pull-request --edit -o -F -"
pr-last-commit = "!git log -1 --pretty=%B 2>/dev/null | hub pull-request --edit -o -F -"
up = pull --rebase --autostash
undo-last-commit = reset --soft HEAD~1
vi = "!vim .git/index"
behind-by = "!git fetch origin && git rev-list --left-only --count origin/master...@"
[merge]
tool = opendiff
[core]
excludesfile = ~/.gitignore
legacyheaders = false
[repack]
usedeltabaseoffset = true
[rerere]
enabled = 1
[branch "master"]
remote = origin
merge = refs/heads/master
[hub]
protocol = https
[push]
default = simple
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true