Created
February 1, 2023 18:07
-
-
Save mattgalbraith/0f9f2d75023be5355b693cb832b9abef to your computer and use it in GitHub Desktop.
Managing Github credentials from R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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