HTTPS-based Authentication
Another possible way to authenticate to the repository is HTTPS with username and password using git
's "credential helper" store.
In ~/.gitconfig
:
[credential]
helper = store
In ~/.git-credentials
(note: @
(as %40
) and other characters in a username or password must be escaped using url encoding):
https://user:pass@git.shipyard.rs
Note: remember to set the git-fetch-with-cli
setting In ~/.cargo/config.toml
(optional but highly recommended):
[net]
git-fetch-with-cli = true