用git下载partner提供的private repo时,提示需要输入username和password。但怎么输入都报Authentication failed 的错误。
报错log:
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for ‘https://github.com/xxx/xxx’
本文根据上述链接整理出步骤:
git clone https://github.com/username/repo.git
Username: your_username
Password: your_token