Draft: Use gitconfig to authenticate with netrc as fallback

There currently is no way to authenticate per url, as netrc matches the host and not the path.

This adds this ability through gitconfig entries that embeds the credentials:

[url "https://user:password@gitlab.com/foo/bar"]
        insteadOf = "https://gitlab.com/foo/bar"

[url "https://user2:password2@gitlab.com/foo/baz"]
        insteadOf = "https://gitlab.com/foo/baz"

Closes #93

Edited by Ed Cope

Merge request reports

Loading