GitHub:token验证机制

发布于 2021-11-18  1340 次阅读


github 在 2021.8.13 移除了密码认证的支持,要使用 personal access token 代替密码认证。

具体步骤:

setting->developer settings->personal access token (依次进入申请token,并且要勾选需要使用的权限)

使用方式1:

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

使用方式2:

直接携带token到git链接中

git remote set-url origin https://<tour_new_token>@github.com/<git_url>


欢迎欢迎~热烈欢迎~