-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
51 lines (51 loc) · 1.88 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
[url "https://github.com/"]
insteadOf = git@github.com:
[url "https://github.com/"]
insteadOf = git://github.com/
[user]
name = stuart.warren
email = stuart.warren@ocado.com
[commit]
template = ~/.gitmessage
[push]
default = simple
[core]
excludesfile = ~/.gitignore
attributesfile = ~/.gitattributes
[status]
submoduleSummary = true
[diff]
submodule = log
[filter "lfs"]
smudge = git-lfs smudge %f
required = true
clean = git-lfs clean %f
[pull]
ff = only
[advice]
detachedHead = False
[alias]
upstream-name = ! "git remote | egrep -o '(upstream|origin)' | tail -1"
default-branch = ! "git remote show $(git upstream-name) | awk '/HEAD branch/ {print $NF}'"
files = ! "git diff --name-only $(git merge-base HEAD $(git default-branch))"
stat = ! "git diff --stat $(git merge-base HEAD $(git default-branch))"
freq-changes = ! "_c() { git log --name-only --oneline | sort | uniq -c | sort -n | tail -n 20; }; _c"
heatmap = ! "_h() { awk '{ printf $2\"\t\"; { c=0; do{printf \"▇\"; c++} while (c<$1); printf \"\\n\"} }'; }; git freq-changes | _h | column -t"
review = ! "export BRANCH=$(git default-branch); nvim -p $(git files) +\"tabdo Gdiffsplit $BRANCH:%\" +\"let g:gitgutter_diff_base = '$BRANCH'\""
pydepgraph = ! "pydeps $(dirname $(find . -name __init__.py | head -n1)) --no-output --show-dot | graph-easy"
godepgraph = ! "pushd $(dirname $(find . -name go.mod | head -n 1))>/dev/null; godepgraph -s --maxlevel 6 $(go list ./... | head -n1) | graph-easy --as boxart | less; popd >/dev/null"
[credential]
helper =
helper = /usr/local/share/gcm-core/git-credential-manager-core
[credential "https://dev.azure.com"]
useHttpPath = true
[github "gitlab.ocado.tech/api/v4"]
user = stuart.warren
[gitlab "gitlab.ocado.tech/api/v4"]
user = stuart.warren
[gitlab "gitlab.ocado.tech/api"]
user = stuart.warren
[gitlab "gitlab.ocado.tech"]
user = stuart.warren
[gitlab]
user = stuart.warren