Steps to Reproduce:
Error: Authentication failed on the git remote.
A dialog box appears to enter your git username/password, but there is no subsequent dialog for the two-factor authentication code, and so the process just fails.
The https protocol was used for the git clone on this repo.
You can create a personal access token following the instructions here:
https://help.github.com/articles/creating-an-access-token-for-command-line-use/
Then you simply use that token as the password.
Thanks, that's a good workaround.
Still, it seems like from a UX perspective it would be nice to support at some point.
Thanks @skl131313
I"ll put my 2 cents in. It indeed would be nice to support CLI 2-factor. Make life a bit easier if we don't want to go down the token route.
Just had this issue, thanks for the token guide! 2FA in GUI would be very convenient still 馃挴
Anyone working on this? I am picking it up otherwise.
Ok, so I have been looking into this issue and have come up with some observations, issues and suggestions for how to do this.
I haven't actually started any of this work as I would like to get some feedback from the team regarding their thoughts and if this fits with the direction they current have.
As a simple starting point, I'd suggest just changing the helper text around the Github password form slightly:
"In case you have 2-Factor Authentication activated on your Github account, you will need to enter a personal access token instead of your Github password. Please see instructions on how to get your token here."
Most helpful comment
You can create a personal access token following the instructions here:
https://help.github.com/articles/creating-an-access-token-for-command-line-use/
Then you simply use that token as the password.