-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig_work.template
More file actions
28 lines (25 loc) · 988 Bytes
/
gitconfig_work.template
File metadata and controls
28 lines (25 loc) · 988 Bytes
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
# vim:filetype=gitconfig
# .gitconfig_work_id
# [user]
# email = thanh@workplace.com
# signingkey = ABCDEFGH12345678
[includeIf "hasconfig:remote.*.url:git@github.com:team-alpha/*"]
path = ~/.gitconfig_work_id
[includeIf "hasconfig:remote.*.url:git@gist.github.com:team-alpha/*"]
path = ~/.gitconfig_work_id
[url "git@github.work:team-alpha"]
insteadOf = https://github.com/team-alpha
[url "git@github.work:team-alpha"]
insteadOf = git@github.com:team-alpha
[url "ssh://git@github.work/team-alpha"]
insteadOf = ssh://git@github.com/team-alpha
[includeIf "hasconfig:remote.*.url:git@github.com:team-beta/*"]
path = ~/.gitconfig_work_id
[includeIf "hasconfig:remote.*.url:git@gist.github.com:team-beta/*"]
path = ~/.gitconfig_work_id
[url "git@github.work:team-beta"]
insteadOf = https://github.com/team-beta
[url "git@github.work:team-beta"]
insteadOf = git@github.com:team-beta
[url "ssh://git@github.work/team-beta"]
insteadOf = ssh://git@github.com/team-beta