[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:
parent
167744e8c8
commit
92a01d99ee
1 changed files with 4 additions and 0 deletions
|
@ -10,5 +10,9 @@
|
||||||
[alias]
|
[alias]
|
||||||
ignore = "!gitignore -f"
|
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
|
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]
|
[commit]
|
||||||
gpgsign = true
|
gpgsign = true
|
||||||
|
|
Loading…
Reference in a new issue