2段階認証にすると通常のID/PWでアクセスると認証に失敗するので、アクセストークンを作成し、このトークンをパスワードとして使用する必要がある。
アクセストークンの作成方法は以下を参照
https://help.github.com/articles/creating-an-access-token-for-command-line-use/
$ git clone https://{ユーザ名}:{アクセストークン}@github.com/XXXXX.git
More than 5 years have passed since last update.
2段階認証にすると通常のID/PWでアクセスると認証に失敗するので、アクセストークンを作成し、このトークンをパスワードとして使用する必要がある。
アクセストークンの作成方法は以下を参照
https://help.github.com/articles/creating-an-access-token-for-command-line-use/
$ git clone https://{ユーザ名}:{アクセストークン}@github.com/XXXXX.git
Register as a new user and use Qiita more conveniently