git最新身份验证

从 2021 年 8 月 13 日开始,在 GitHub.com 上执行 Git 操作时,不再接受以账户密码的形式完成身份验证,改用token

$ git clone https://github.com/username/repo.git
Username: your_username
Password: your_token

token生成方法

https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token

 

posted @ 2021-09-14 23:57  gao1996  阅读(358)  评论(0)    收藏  举报