Github二段階認証後はID + tokenを使う
https://github.com/settings/security
困ったこと
会社のルールでGithubで二段階認証(SMS)をおこなっていたのですが、コンソールでID+パスワードを求められた際に認証不足で処理が通らなくなります。
こんな場合です。
$ git clone https://github.com/ttaniguchi/private-repository.git Cloning into 'private-repository'... Username for 'https://github.com': ttaniguchi Password for 'https://ttaniguchi@github.com':
対処方法
パスワードの代わりにPersonal access tokensを作れば大丈夫でした!
https://github.com/settings/tokens
これを知らないと二段階認証への移行に結構足踏みしそう… メモがてら共有します。