| Skip to main content | https://happygitwithr.com/https-pat.html#content |
| Happy Git and GitHub for the useR | https://happygitwithr.com/ |
| Let’s Git started | https://happygitwithr.com/ |
| 1 Why Git? Why GitHub? | https://happygitwithr.com/big-picture |
| 2 Contributors | https://happygitwithr.com/contrib |
| 3 Workshops | https://happygitwithr.com/workshops |
| Half the battle | https://happygitwithr.com/install-intro |
| 4 Register a GitHub account | https://happygitwithr.com/github-acct |
| 5 Install or upgrade R and RStudio | https://happygitwithr.com/install-r-rstudio |
| 6 Install Git | https://happygitwithr.com/install-git |
| 7 Introduce yourself to Git | https://happygitwithr.com/hello-git |
| 8 Install a Git client | https://happygitwithr.com/git-client |
| Can you hear me now? | https://happygitwithr.com/connect-intro |
| 9 Personal access token for HTTPS | https://happygitwithr.com/https-pat |
| 10 Set up keys for SSH | https://happygitwithr.com/ssh-keys |
| 11 Connect to GitHub | https://happygitwithr.com/push-pull-github |
| 12 Connect RStudio to Git and GitHub | https://happygitwithr.com/rstudio-git-github |
| 13 Detect Git from RStudio | https://happygitwithr.com/rstudio-see-git |
| 14 RStudio, Git, GitHub Hell | https://happygitwithr.com/troubleshooting |
| Get started with GitHub | https://happygitwithr.com/usage-intro |
| 15 New project, GitHub first | https://happygitwithr.com/new-github-first |
| 16 Existing project, GitHub first | https://happygitwithr.com/existing-github-first |
| 17 Existing project, GitHub last | https://happygitwithr.com/existing-github-last |
| 18 Test drive R Markdown | https://happygitwithr.com/rmd-test-drive |
| 19 Render an R script | https://happygitwithr.com/r-test-drive |
| Some Git basics | https://happygitwithr.com/git-intro |
| 20 Repo, commit, diff, tag | https://happygitwithr.com/git-basics |
| 21 Git commands | https://happygitwithr.com/git-commands |
| 22 Branches | https://happygitwithr.com/git-branches |
| 23 Remotes | https://happygitwithr.com/git-remotes |
| 24 Refs | https://happygitwithr.com/git-refs |
| Git remote setups | https://happygitwithr.com/remote-scenarios-intro |
| 25 Common remote setups | https://happygitwithr.com/common-remote-setups |
| 26 Equivocal remote setups | https://happygitwithr.com/equivocal |
| Useful Git patterns for real life | https://happygitwithr.com/workflows-intro |
| 27 The Repeated Amend | https://happygitwithr.com/repeated-amend |
| 28 Dealing with push rejection | https://happygitwithr.com/push-rejected |
| 29 Pull, but you have local work | https://happygitwithr.com/pull-tricky |
| 30 Time travel: See the past | https://happygitwithr.com/time-travel-see-past |
| 31 Fork and clone | https://happygitwithr.com/fork-and-clone |
| 32 Get upstream changes for a fork | https://happygitwithr.com/upstream-changes |
| 33 Explore and extend a pull request | https://happygitwithr.com/pr-extend |
| 34 Make a GitHub repo browsable | https://happygitwithr.com/workflows-browsability |
| 35 Clone a repo | https://happygitwithr.com/clone |
| 36 Create a bingo card | https://happygitwithr.com/bingo |
| 37 Burn it all down | https://happygitwithr.com/burn |
| 38 Resetting | https://happygitwithr.com/reset |
| 39 Search GitHub | https://happygitwithr.com/search |
| Notes | https://happygitwithr.com/notes-intro |
| 40 Run a course with GitHub | https://happygitwithr.com/classroom-overview |
| 41 Ideas for content | https://happygitwithr.com/ideas-for-content |
| 42 Bookdown cheat sheet | https://happygitwithr.com/bookdown-cheat-sheet |
| A The shell | https://happygitwithr.com/shell |
| B Comic relief | https://happygitwithr.com/comic-relief |
| C Resources | https://happygitwithr.com/resources |
| D References | https://happygitwithr.com/references |
| View book source | https://github.com/jennybc/happy-git-with-r |
| https://happygitwithr.com/https-pat.html#https-pat |
| 10 | https://happygitwithr.com/ssh-keys#ssh-keys |
| Token authentication requirements for Git operations | https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ |
| https://happygitwithr.com/https-pat.html#tldr |
| https://github.com/settings/tokens | https://github.com/settings/tokens |
| Connect to GitHub | https://happygitwithr.com/push-pull-github#push-pull-github |
| How to decide between the HTTPS and SSH protocols | https://happygitwithr.com/https-pat#https-vs-ssh |
| PAT scopes, names, and expiration | https://happygitwithr.com/https-pat#get-a-pat |
| PAT storage | https://happygitwithr.com/https-pat#store-pat |
| Troubleshooting | https://happygitwithr.com/https-pat#pat-troubleshooting |
| https://happygitwithr.com/https-pat.html#https-vs-ssh |
| https://happygitwithr.com/https-pat.html#url-determines-protocol |
| https://happygitwithr.com/https-pat.html#get-a-pat |
| https://github.com/settings/tokens | https://github.com/settings/tokens |
| re-generate the PAT and re-store it | https://happygitwithr.com/https-pat#regenerate-pat |
| https://happygitwithr.com/https-pat.html#store-pat |
| https://happygitwithr.com/https-pat.html#call-an-r-function-to-store-your-credentials |
| gitcreds | https://r-lib.github.io/gitcreds/ |
| credentials | https://docs.ropensci.org/credentials/ |
| https://happygitwithr.com/https-pat.html#gitcreds-package |
| https://happygitwithr.com/https-pat#cb25-1 |
| https://happygitwithr.com/https-pat#cb25-2 |
| https://happygitwithr.com/https-pat#cb25-3 |
| https://happygitwithr.com/https-pat#cb25-4 |
| https://happygitwithr.com/https-pat#cb25-5 |
| https://happygitwithr.com/https-pat#cb25-6 |
| https://happygitwithr.com/https-pat#cb26-1 |
| https://happygitwithr.com/https-pat#cb26-2 |
| https://happygitwithr.com/https-pat#cb26-3 |
| https://happygitwithr.com/https-pat#cb26-4 |
| https://happygitwithr.com/https-pat#cb26-5 |
| https://happygitwithr.com/https-pat#cb26-6 |
| https://happygitwithr.com/https-pat#cb26-7 |
| https://happygitwithr.com/https-pat#cb26-8 |
| https://happygitwithr.com/https-pat#cb26-9 |
| https://happygitwithr.com/https-pat#cb26-10 |
| https://happygitwithr.com/https-pat#cb26-11 |
| https://happygitwithr.com/https-pat#cb26-12 |
| https://happygitwithr.com/https-pat#cb26-13 |
| https://happygitwithr.com/https-pat#cb26-14 |
| https://happygitwithr.com/https-pat#cb26-15 |
| https://happygitwithr.com/https-pat#cb26-16 |
| https://happygitwithr.com/https-pat#cb26-17 |
| https://happygitwithr.com/https-pat#cb26-18 |
| https://happygitwithr.com/https-pat#cb26-19 |
| https://happygitwithr.com/https-pat#cb26-20 |
| https://happygitwithr.com/https-pat#cb26-21 |
| https://happygitwithr.com/https-pat#cb26-22 |
| https://happygitwithr.com/https-pat#cb26-23 |
| https://happygitwithr.com/https-pat.html#credentials-package |
| https://happygitwithr.com/https-pat.html#store-credentials-through-organic-git-use |
| Connect to GitHub | https://happygitwithr.com/push-pull-github#push-pull-github |
| https://happygitwithr.com/https-pat.html#pat-troubleshooting |
| https://happygitwithr.com/https-pat.html#valid-pat-gets-stored-but-later-told-the-pat-is-invalid |
| https://happygitwithr.com/https-pat.html#regenerate-pat |
| https://github.com/settings/tokens | https://github.com/settings/tokens |
| https://happygitwithr.com/https-pat.html#old-github_pat-in-.renviron |
| https://happygitwithr.com/https-pat.html#pat-doesnt-persist-on-macos-or-windows |
| git credential | https://git-scm.com/docs/git-credential |
| https://happygitwithr.com/https-pat.html#pat-doesnt-persist-on-linux |
| https://happygitwithr.com/https-pat#cb37-1 |
| Can you hear me now? | https://happygitwithr.com/connect-intro |
| 10 Set up keys for SSH | https://happygitwithr.com/ssh-keys |
| 9 Personal access token for HTTPS | https://happygitwithr.com/https-pat.html#https-pat |
| 9.1 TL;DR | https://happygitwithr.com/https-pat.html#tldr |
| 9.2 HTTPS versus SSH | https://happygitwithr.com/https-pat.html#https-vs-ssh |
| 9.2.1 URL determines the protocol | https://happygitwithr.com/https-pat.html#url-determines-protocol |
| 9.3 Generate a personal access token (PAT) | https://happygitwithr.com/https-pat.html#get-a-pat |
| 9.4 Store your PAT | https://happygitwithr.com/https-pat.html#store-pat |
| 9.4.1 Call an R function to store your credentials | https://happygitwithr.com/https-pat.html#call-an-r-function-to-store-your-credentials |
| 9.4.2 Store credentials through organic Git use | https://happygitwithr.com/https-pat.html#store-credentials-through-organic-git-use |
| 9.5 HTTPS PAT problems and solutions | https://happygitwithr.com/https-pat.html#pat-troubleshooting |
| 9.5.1 Valid PAT gets stored, but later told the PAT is invalid | https://happygitwithr.com/https-pat.html#valid-pat-gets-stored-but-later-told-the-pat-is-invalid |
| 9.5.2 PAT doesn’t persist on macOS or Windows | https://happygitwithr.com/https-pat.html#pat-doesnt-persist-on-macos-or-windows |
| 9.5.3 PAT doesn’t persist on Linux | https://happygitwithr.com/https-pat.html#pat-doesnt-persist-on-linux |
| View source | https://github.com/jennybc/happy-git-with-r/blob/main/connect-https-pat.Rmd |
| Edit this page | https://github.com/jennybc/happy-git-with-r/edit/main/connect-https-pat.Rmd |
| bookdown | https://bookdown.org |