Skip to content

Instantly share code, notes, and snippets.

@mattgalbraith
Created February 1, 2023 18:07
Show Gist options
  • Save mattgalbraith/0f9f2d75023be5355b693cb832b9abef to your computer and use it in GitHub Desktop.
Save mattgalbraith/0f9f2d75023be5355b693cb832b9abef to your computer and use it in GitHub Desktop.
Managing Github credentials from R
# See https://usethis.r-lib.org/articles/git-credentials.html
# Need to periodically add/update personal access token (PAT) for Github
# check token status and git details
usethis::gh_token_help()
usethis::git_sitrep()
# To generate a new PAT (takes you to a pre-filled form to create a new PAT)
usethis::create_github_token()
# To register this token in the local Git credential store
gitcreds::gitcreds_set()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment