[git] Change to only ssh pushing, verbose diffs

Changed url substitution to only work on pushing, so that we can always
make use of ssh keys but things like pulling through rust's cargo still
work.

Default to verbose diffs, even though we also set it in the alias.
This commit is contained in:
Marty Oehme 2020-03-03 09:43:36 +01:00
parent 43a21d4775
commit 7648d9c8d3
No known key found for this signature in database
GPG Key ID: 0CCB0526EFB9611A
1 changed files with 8 additions and 2 deletions

View File

@ -11,8 +11,14 @@
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
pushInsteadOf = "https://github.com/"
pushInsteadOf = "http://github.com/"
pushInsteadOf = "gh:"
[url "git@gitlab.com:"]
insteadOf = https://gitlab.com
pushInsteadOf = "https://gitlab.com"
pushInsteadOf = "http://gitlab.com"
[commit]
# sign commits as me
gpgsign = true
# Show diff when preparing commit message
verbose = true