sourcetree使用personal access token 登录GitHub

东明兄 2021-09-28
1条评论 1,467 次浏览
东明兄 2021-09-281条评论 1,467 次浏览

使用sourcetree更新GitHub项目时报错:Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

因为github更新策略,只可用personal access token登录,sourcetree 修改方法:

在sourcetree中进入项目,点击【远程仓库】修改仓库地址:

格式为:https://<your_token>@github.com/<USERNAME>/<REPO>.git

在命令行中,同样的使用该格式clone https仓库:

git clone https://<your_token>@github.com/crazyming9528/nodejs-learning.git

sourcetree使用personal access token 登录GitHub” 有1条评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注