笔记-关于GitHub的操作

很长时间没有更新过GitHub了,有些普通操作不知道哪儿是哪儿了,特别增加一篇文章,记录一些GitHub常用的操作,方便后期使用,持续更新中

目录

  • 1、新建代码仓库
  • 2、使用账号密码提交,报错问题
  • 3、Trending链接

1、新建代码仓库

2、使用账号密码提交,报错问题

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: Authentication failed for 'https://github.com/CodeQiangZi/GitHubTrendingRN.git/'

官方说明
从2021年8月13日开始,原先的密码凭证就不能用了,必须使用个人访问令牌(personal access token),就是把你的密码替换成token!

解决方案
方案1、配置SSH方式,这里不做过多描述,配置方式可参考 Mac 电脑生成.ssh公钥
方案2、配置token(如下图所示)


3、Trending链接

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章