Skip to content

Commit

Permalink
Update connect-https-pat.Rmd (#197)
Browse files Browse the repository at this point in the history
Hi - I am so thankful for this resource. 

A minor suggestion, which is to change the gitcreds::gitcreds_set() code in chapter 9 so that it can actually be copied straight into R. As of right now, the function and resulting dialogue is copied, which is a bit annoying if you're trying to paste into the R console. Please feel free to decline.
  • Loading branch information
rbcavanaugh authored Sep 11, 2024
1 parent 62b5246 commit 11e4967
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions connect-https-pat.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,13 @@ GitHub no longer allows passwords in this context, but most basic Git tools stil
You could even get out ahead of this and store the PAT explicitly right now.
In R, call `gitcreds::gitcreds_set()` to get a prompt where you can paste your PAT:

```{sh eval = FALSE}
> gitcreds::gitcreds_set()
```{r eval = FALSE}
gitcreds::gitcreds_set()
```

Paste the PAT in response to the dialogue in the console:

```
? Enter password or token: ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-> Adding new credentials...
-> Removing credentials from cache...
Expand Down

0 comments on commit 11e4967

Please sign in to comment.