Execute git command with https-url.
git push
to https-url with access token.
See github_httpsable_cli for GitHub specific version. See git_httpsable for the programmatic API.
$ GIT_HTTPSABLE_USERNAME=__your_user_name__ GIT_HTTPSABLE_PASSWORD=__your_password__ \
git-httpsable clone https://example.com/git/repo ./target_dir
# => git clone https://__your_user_name__:[email protected]/git/repo ./target_dir
$ GIT_HTTPSABLE_USERNAME=__your_user_name__ GIT_HTTPSABLE_PASSWORD=__your_password__ \
git-httpsable push https://example.com/git/repo your_branch
# => git push https://__your_user_name__:[email protected]/git/repo your_branch
- GitHub:
GIT_HTTPSABLE_USERNAME=__your_access_token__
,GIT_HTTPSABLE_PASSWORD=x-oauth-user
- BitBucket:
GIT_HTTPSABLE_USERNAME=x-token-auth
,GIT_HTTPSABLE_PASSWORD=__your_access_token__
Download from Latest release for your own environment.
or
$ cargo install git_httpsable_cli
MIT/Apache-2.0 © sanemat