Execute git command with https-url (for GitHub).
See git_httpsable for the programmatic API. See git_httpsable_cli for generic cli.
$ GITHUB_ACCESS_TOKEN=__your_access_token__ \
github-httpsable clone https://example.com/git/repo ./target_dir
# => git clone https://__your_access_token__:x-oauth-user@example.com/git/repo ./target_dir
$ GIT_HTTPSABLE_USERNAME=__your_access_token__ \
github-httpsable push https://example.com/git/repo your_branch
# => git push https://__your_access_token__:x-oauth-user@example.com/git/repo your_branch
NOTE: Both GITHUB_ACCESS_TOKEN
and GIT_HTTPSABLE_USERNAME
are ok.
Download from Latest release for your own environment.
or
$ cargo install github_httpsable_cli
MIT/Apache-2.0 © Sanemat