Tools for Managing SSH and Git Credentials
Setup and retrieve HTTPS and SSH credentials for use with ‘git’ and other services. For HTTPS remotes the package interfaces the ‘git-credential’ utility which ‘git’ uses to store HTTP usernames and passwords. For SSH remotes we provide convenient functions to find or generate appropriate SSH keys. The package both helps the user to setup a local git installation, and also provides a back-end for git/ssh client libraries to authenticate with existing user credentials.
Automatically populate your
GITHUB_PAT environment variable from the native git credential store. The credential manager will safely prompt the user for credentials when needed.
Use this function in your
.Rprofile if you want to automatically set
GITHUB_PAT for each R session, without hardcoding your secret in plain text.
Load or prompt the user for GitHub username and password:
See which credential helper back-end your
git-credential store is using:
Lookup the appropriate key, or prompt the user to generate one:
You can copy-paste the public key directly to your GitHub profile!