Skip to content

Instantly share code, notes, and snippets.

@MVesuviusC
Last active April 19, 2022 13:24
Show Gist options
  • Save MVesuviusC/3560cb8224ee3cb08fb0a083abde1bd6 to your computer and use it in GitHub Desktop.
Save MVesuviusC/3560cb8224ee3cb08fb0a083abde1bd6 to your computer and use it in GitHub Desktop.
save git credentials
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