https://github.com/qssq/CustomTVDesktopLauncher.git
替换成
https://你的token@github.com/qssq/CustomTVDesktopLauncher.git
黑色加粗就是你需补充的内容,简单粗暴。
可直接推送,
![](https://img.haomeiwen.com/i2815884/c01ac2e774395b15.png)
还有一种办法是使用OpenSSH转Putty Key tortoriseGit提交的方法,这样同样避免了你不用再输入密码。
这个我另外写了一篇教程。https://www.jianshu.com/p/acd793f66af2
ok,上面说的使用开发工具和github desktop的填写token推送,关于token的创建下面的地址直达。
git.exe push --progress "origin" master:master
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/qssq/RobotDemoEngine.git/': The requested URL returned error: 403
翻译过来理解就是 2021年8月13日,已经移除了密码验证,无法通过这种输入git账户密码的方式提交了,那么
请使用个人访问token代替。至于为什么不让这样搞了官方提示访问下面网址查看原因
https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations
如果使用idea或者Android studio那么在设置里面能找到一个login for token,
点击generate也就是生成跳转到一个网址
https://github.com/settings/tokens/new?description=Android%20Studio%20GitHub%20integration%20plugin&scopes=repo%2Cgist%2Cread%3Aorg
![](https://img.haomeiwen.com/i2815884/18ed9d5beff6c3f3.png)
输入github密码之后会跳转到如下界面 1. Settings
- Developer settings
选择 Personal access tokens
这是一个新建token界面,可以点击这个个人访问token返回,这里直接新建,新建完成之后
![](https://img.haomeiwen.com/i2815884/b22476afea914d33.png)
![](https://img.haomeiwen.com/i2815884/6a583fe214d8bce5.png)
可以选择30天也可以选择永久的那种,
新建完成之后我创建了2个,点击一个进去,里面就有一个点击生成token
![](https://img.haomeiwen.com/i2815884/649b01b0a85f5d28.png)
生成的token只能看一次,自己保存起来,再次进来又看不到了,提示要么重新生成。。
![](https://img.haomeiwen.com/i2815884/d741d017a87367fd.png)
If you’ve lost or forgotten this token, you can regenerate it, but be aware that any scripts or applications using this token will need to be updated.
拷贝token在这开发工具里面填写进去就行了。
网友评论