Last active
April 19, 2022 13:24
-
-
Save MVesuviusC/3560cb8224ee3cb08fb0a083abde1bd6 to your computer and use it in GitHub Desktop.
save git credentials
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
git save credentials temporarily | |
# Store info for a day | |
# after you put it in once it remembers it for a day | |
git config --global credential.helper "cache --timeout=86400" | |
usethis::create_github_token() | |
# Use the website to set up the github personal access token (PAT) | |
# Copy the PAT somewhere so you don't forget it | |
library(gitcreds) | |
gitcreds_set() | |
# Paste your PAT into the prompt | |
# try pushing up to github |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment