2FA for GitHub

Enabled 2FA for GitHub on Android Phone…FreeOTP app.

Enabling 2FA caused me problems doing a git clone on the command line! The solution was to generate a "Personal access token (PAT)".

I selected "read:packages" on "Generate Token" which didn't work!

Googling didn't help various solutions said to…

use PAT for username & <ENTER>for password.

use PAT for username & PAT for password.

If private (it was) use " git remote set-url origin https://url " instead of " git clone "

My solution which was to just try something else (educated guess)

added "repro" to "Generate Token" and it worked!

bill@billb-MS-7B79 ~/Mystuff/Python3 $ git clone https://github.com/user/\[repro\].git

Cloning into 'parseJob'…

Username for ' https://github.com ': [Username]

Password for ' https://user@github.com ': [enter Personal access token]

remote: Enumerating objects: 22, done.

remote: Counting objects: 100% (22/22), done.

remote: Compressing objects: 100% (13/13), done.

remote: Total 22 (delta 9), reused 21 (delta 8), pack-reused 0

Unpacking objects: 100% (22/22), done.

Checking connectivity… done.

bill@billb-MS-7B79 ~/Mystuff/Python3 $

2020-03-28 03:08:26
Index