Git 命令行登录

有时候登录命令行版本的git会出现这个错误

1remote: Support for password authentication was removed on August 13, 2021.
2remote: 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.

原因是github不再支持密码验证,需要使用token验证,具体操作如下:

  1. 在github上生成token 网站:github.com/settings/tokens
  2. 下次命令行要求输入密码时,输入token即可

注意:token只会显示一次,所以要保存好,不然就要重新生成了,也可以用密码记录软件保存这个token,在多处使用,因为要一个一个勾选权限也挺麻烦的其实。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值