alexdriaguine / create-git-repo

A script to create git repos
MIT License
5 stars 8 forks source link

Does not support 2FA #19

Open ntwigs opened 5 years ago

ntwigs commented 5 years ago

Expected

To get logged in :beers:

Result

Does not get logged in and displays Hey! You got your credentials all wrong ntwigs! :cry:

alexdriaguine commented 5 years ago

Yea, this is due to how githubs cli works when having 2FA on your account. You cannot use the password with https remotes. You either have to use SSH or generate a personal access token and use that as your password..

We could put this information in the README. Here is a useful link https://help.github.com/articles/accessing-github-using-two-factor-authentication/#using-two-factor-authentication-with-the-command-line

ntwigs commented 5 years ago

Looks like it shouldn't be impossible to handle 2FA accounts! 2FA in the bottom

alexdriaguine commented 5 years ago

I'll look into it! 😬