GitHub上的Git Clone通过https进行两因素身份验证
我最近开始在GitHub上使用两因素身份验证,现在我无法以通常的方式在私有存储库上使用git over https: peter@computer:~$ git clone https://github.com/[...]/MyPrivateRepo Cloning into 'MyPrivateRepo'... Username for 'https://github.com': [...] Password for 'https://[...]@github.com': remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/[...]/MyPrivateRepo/' 如果禁用两因素身份验证,则可以像以前一样使用它: peter@computer:~$ git clone https://github.com/[...]/MyPrivateRepo Cloning into 'MyPrivateRepo'... Username for 'https://github.com': [...] Password for 'https://[...]@github.com': remote: Counting objects: 147, done. remote: Total 147 …