开发笔记

sourcetree使用personal access token 登录GitHub

东明兄东明兄
·

使用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
标签:# 工具
文章同步自博客,原文链接:https://blog.crazyming.com/note/2540/