Skip to content

Commit 76587e0

Browse files
committed
Adding information about how to create a personal access token for readers who have enabled two-factor authentication.
1 parent fa20959 commit 76587e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

06-Git-and-GitHub.Rmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,9 @@ on GitHub with a local repository is a little different from future Git pushes.
11111111
We'll need to use the `-u` flag in order to set `origin` as the default remote
11121112
repository so we don't have to provide its name every time we want to interact
11131113
with it. Enter the following command, modified so that you're using your GitHub
1114-
user name:
1114+
user name. (Note: If you have two-factor authentication enabled in your GitHub account,
1115+
you will need to create a (personal access token)[https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line]
1116+
to use at the password prompt.)
11151117

11161118
```{r, engine='bash', eval=FALSE}
11171119
git push -u origin master

0 commit comments

Comments
 (0)