Software
gitcreds

gitcreds

Query git credentials from R

30 stars
13 forks
R

gitcreds is an R package that queries and manages git credentials directly from R, letting users set a GitHub token once and reuse it across command line git, R scripts, and the RStudio IDE.

It stores credentials through git’s own credential system rather than .Renviron files, which is typically more secure. The package supports multiple users and hosts (including GitHub Enterprise), includes a cache for fast credential lookup, and falls back to environment variables when git credential helpers aren’t available. It also provides a simple API for package authors who need GitHub authentication, with specific error classes for handling missing credentials gracefully.

Contributors#