git push 过程中遇到:
remote: No anonymous write access.
fatal: Authentication failed for …

最初使用了不正确的解决办法

  1. 先在个人github页面的Settings → Developer settings → Personal access tokens → Generate a personal access token,生成令牌
  2. 在项目的命令行中输入git remote set-url origin https://令牌串@github.com/个人用户名/项目名.git
  3. 再次git push ,不再报 No anonymous write access错误

但是,这时git提交的代码到了个人自己的git项目中,即提交到https://令牌串@github.com/个人用户名/项目名.git中。而在协同开发时,我需要将代码提交至目的项目而非自己的项目。

经过大佬指导,最后解决了问题,正解如下

  1. 先在个人github页面的Settings → Developer settings → Personal access tokens → Generate a personal access token,生成令牌

  2. 在git bash命令行中输入git push,等待弹出窗口

  3. 第一个窗口输入个人的github账户(用户名),第二个窗口输入刚刚生成的令牌。输入正确后push成功。

Git:git push 时 remote: No anonymous write access. fatal: Authentication failed for ....问题相关推荐

  1. remote: Invalid username or password. fatal: Authentication failed for .......

    最近一直没有使用GitHub提交代码,今天提交了点东西,发现怎么都push不成功!我就纳闷了,这段时间没有做任何事情,这是怎么回事呢? 我使用的sourcetree提交代码.首先它会弹出一个框框让你输 ...

  2. Git clone Access denied Authentication failed

    git拉取项目.git push的时候提示没有权限:Access denied Authentication failed 网上看了一下,估计是第一次输入账号密码的时候输入错误,但是问题是git把错误 ...

  3. Git push “fatal: Authentication failed ”

    Git push "fatal: Authentication failed " 问题原因 之前设置了两步验证 If you enabled two-factor authenti ...

  4. linux git 问题:fatal: early EOF fatal: The remote end hung up unexpectedly fatal: index-pack failed

    linux从github git较大的文件时出现的问题,查找以下,暂时关闭防火墙可行,或许还有其他好的解决办法,暂时记录下: 出现问题: git clone --recursive https://g ...

  5. github push 代码出现fatal: Authentication failed for ‘https://github.com/xxx/xxx.git/‘

    fatal: Authentication failed for 'https://github.com/xxx/xxx.git/': 问题描述 想从服务器上push代码到github,遇见fatal ...

  6. git克隆代码报错remote: HTTP Basic: Access denied fatal: Authentication failed for的解决方案之一

    remote: HTTP Basic: Access denied fatal: Authentication failed for 'http://xxx.git/' 在克隆代码时输入一次错误的用户 ...

  7. git一直输入用户名和密码的解决方法remote: HTTP Basic: Access denied fatal: Authentication failed for

    报错信息:remote: HTTP Basic: Access denied fatal: Authentication failed for ' 解决方法:git config --global c ...

  8. 执行git pull时出现:fatal: Authentication failed for ‘http://......................‘

    执行git pull时出现:fatal: Authentication failed for 'http://-' 解决方案1 git config --system --unset credenti ...

  9. 使用git时出现fatal: Authentication failed for

    出现如下错误: fatal: Authentication failed for 这是因为我使用的git账号的密码修改了,但是之前已经保存了原来的密码,所以就是密码错误导致无法登陆,但是又不会弹出来让 ...

最新文章

  1. 用计算机能改装成万用表吗,用旧手机电池修改万用表
  2. 《预训练周刊》第12期:无注意力变换器、借蛋白质语言模型论进化速度
  3. Android之SimpleAdapter使用
  4. sqlserver 多排序的问题
  5. 有关STM32外设配置的几个常见问题
  6. cd库图像处理php,PHP图像处理类库及演示分享
  7. Dubbo集成Zookeeper的实现原理
  8. C socket demo
  9. Kafka2.12安装与配置/生产与消费
  10. 钩子怎么画_画男生校服有什么技巧?该注意什么?
  11. 汉字统计--统计给定文本文件中汉字的个数。
  12. 10年老台式机4分钟攻破量子加密算法,此前12年无人破解,核心原理来自25年前...
  13. 视频教程-2020软考网络规划设计师基础知识视频教程-软考
  14. 太阳系各大行星3D展开贴图资源
  15. c51编译器+linux,C51 开源编译器SDCC学习笔记-安装
  16. h510主板怎么样 h510配什么cpu
  17. 【算法 | 实验18】在字符矩阵中查找给定字符串的所有匹配项
  18. 谈谈怎么可以得到显著性图 特征图 featuremap 深度学习的可解释性 卷积神经网络表征可视化研究综述
  19. 用php实现日历输出,php 实现日历
  20. 步进电机编码器闭环程序,西门子200PLC和威纶通触摸屏实控制步进电机

热门文章

  1. Rrs与rrs/Rrs直观理解/菲涅尔反射
  2. 酷我音乐for linux,在ubuntu 14.04 64bit上安装酷我音乐盒Linux客户端kwplayer
  3. AI的不同发展方向汇总(人工智能)
  4. ftp 新建远程目录报错550
  5. UPI(台湾力智)推出UP9614可以满足充双口足4.8A或SCP/OPPO 单口车充4.5A的大电流车充方案
  6. 互联网,软件行业找工作问题总结
  7. 2-7 微信小程序计算器
  8. harmonyOS应用场景,华为HarmonyOS 2.0正式发布 使能全场景智慧生态
  9. 对着iebook说爱
  10. Mybatis Plus实现分页查询