git 报错:Support for password authentication was removed. Please use a personal access token instead.

简介: git 报错:Support for password authentication was removed. Please use a personal access token instead.

原因

github的验证需要用token了。



解决

在github里面,我们找到settings里的developer settings选项,在选择personal access tokens 点击 Generate new token 新增token。

80278f7aef84498c8133150113d7e92b.png

填一下下面的东东就行

6d974d32e7bc45b19e7877b3fa30fa88.png



生成token之后复制到密码处就行

29fd692b158a447eb728096b143c9cfa.png



重复输入账号密码问题

可以通过往 windows 添加普通凭据,密码处填写token即可


afedaa86f5f840e6b685a5c9056e1596.png









目录
相关文章
|
4月前
|
安全 开发工具 git
git添加远程仓库报错To add an exception for this directory解决方案-优雅草卓伊凡
git添加远程仓库报错To add an exception for this directory解决方案-优雅草卓伊凡
510 5
git添加远程仓库报错To add an exception for this directory解决方案-优雅草卓伊凡
|
7月前
|
算法 安全 网络安全
git clone操作报错diffie-hellman-group1-sha1的解决方案
在处理这一问题时,需要确保了解相关操作的安全影响。`diffie-hellman-group1-sha1`算法被认为是不够安全的,这是因为随着计算能力的提高,`SHA-1`算法可以在合理的时间内被破解,而且其对应的 `1024位`Diffie-Hellman组也可能不够强大。因此,在确保Git操作的同时,也要考虑提升安全性的长期解决办法。强烈推荐与管理员或相关技术支持团队合作,升级和加强服务器端的安全配置。
197 12
|
8月前
|
网络协议 开发工具 git
解决 git 报错 “fatal: unable to access ‘https://github.com/.../.git‘: Recv failure Connection was rese
在使用 Git/Git小乌龟 进行代码管理的过程中,经常会遇到各种各样的问题,其中之一就是在执行 git clone 或 git pull 等操作时出现 “fatal: unable to access ‘https://github.com/…/.git’: Recv failure Connection was reset” 的报错。这个问题通常是由网络连接问题或代理设置不正确导致的。在我的个人使用经验中,我亲自尝试了四种方法,它们都能够有效地解决这个报错。个人比较推荐方法二。
5484 1
|
11月前
|
开发工具 git 索引
warning: You ran ‘git add’ with neither ‘-A (—all)’ or ‘—ignore-removal’,报错如何解决 git报错 ‘git add —ignore-removal <pathspec>优雅草卓伊凡
warning: You ran ‘git add’ with neither ‘-A (—all)’ or ‘—ignore-removal’,报错如何解决 git报错 ‘git add —ignore-removal <pathspec>优雅草卓伊凡
238 21
warning: You ran ‘git add’ with neither ‘-A (—all)’ or ‘—ignore-removal’,报错如何解决 git报错 ‘git add —ignore-removal <pathspec>优雅草卓伊凡
|
10月前
|
Shell 开发工具 git
解决git bash报错:在仓库中检测到可疑的所有权
总的来说,解决“在仓库中检测到可疑的所有权”的报错,关键在于理解和调整文件或目录的所有权。只要我们正确地设置了文件或目录的所有权,那么我们就可以避免这种问题,让Git Bash正常工作。
407 22
|
10月前
|
Shell 网络安全 开发工具
Git常见问题解决:解决TortoiseGit的No supported authentication methods available错误。
总的来说,遇到"No supported authentication methods available"这个问题,就像是钓到了一条刺猬。解决它就像是给刺猬穿上一件新衣服。首先,你需要生成新的SSH秘钥对,然后,将你的公钥添加到Git服务器,这样,你的SSH客户端就能认出刺猬了。接下来,将你的私钥添加到SSH agent,让你的SSH客户端拥有这个刺猬的“身份证”。最后,你还需要告诉TortoiseGit,如何使用这个新的SSH秘钥,也就是将刺猬的“身份证”告诉TortoiseGit。只需要做到这四点,你就可以顺利地解决这个问题了。希望这个步骤为步的解决方法能够帮到你解决这个问题,让你的代码
1138 21
|
开发工具 git
git 使用之remote: File [4e21e71a555febaa4dfaaa05cf7eeb606ea96ae2] size 104.090MB, exceeds quota 100MB remote: Please remove the file[s] from history and try again 报错如何解决-优雅草卓伊凡
git 使用之remote: File [4e21e71a555febaa4dfaaa05cf7eeb606ea96ae2] size 104.090MB, exceeds quota 100MB remote: Please remove the file[s] from history and try again 报错如何解决-优雅草卓伊凡
918 3
git 使用之remote: File [4e21e71a555febaa4dfaaa05cf7eeb606ea96ae2] size 104.090MB, exceeds quota 100MB remote: Please remove the file[s] from history and try again 报错如何解决-优雅草卓伊凡
|
5月前
|
开发工具 git
Git版本控制工具合并分支merge命令操作流程
通过以上步聚焦于技术性和操作层面指南(guidance), 可以有效管理项目版本控制(version control), 并促进团队协作(collaboration).
1196 15
|
8月前
|
安全 开发工具 git
git的常用操作命令
git的常用操作命令
536 57
|
6月前
|
存储 缓存 开发工具
Git stash命令的详细使用说明及案例分析。
通过上述案例,我们看到stash命令能够在不丢失进度的情况下,帮助开发者临时切换开发上下文,这在处理多个任务或紧急bug时特别有用。正确使用Git stash可以大大提高开发的灵活性和效率。
2100 0