[git] Substitute git for https connections

When git is invoked with https for either github or gitlab then
automatically switch it out to git@server.com
This commit is contained in:
Marty Oehme 2020-02-20 22:47:00 +01:00
parent 167744e8c8
commit 92a01d99ee
No known key found for this signature in database
GPG Key ID: 0CCB0526EFB9611A
1 changed files with 4 additions and 0 deletions

View File

@ -10,5 +10,9 @@
[alias]
ignore = "!gitignore -f"
pushmerge = "push -o merge_request.merge_when_pipeline_succeeds" # see https://docs.gitlab.com/ce/user/project/push_options.html#merge-when-pipeline-succeeds-alias
[url "git@github.com:"]
insteadOf = https://github.com
[url "git@gitlab.com:"]
insteadOf = https://gitlab.com
[commit]
gpgsign = true