笔记-关于GitHub的操作
2021-11-29 本文已影响0人
强子ly
很长时间没有更新过GitHub了,有些普通操作不知道哪儿是哪儿了,特别增加一篇文章,记录一些GitHub常用的操作,方便后期使用,持续更新中
目录
- 1、新建代码仓库
- 2、使用账号密码提交,报错问题
- 3、删除代码仓库
- 4、GitHub Pages
- 5、Trending链接
- 6、在大型仓库中查找文件
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、删除仓库


4、GitHub Pages





5、Trending链接
6、在大型仓库中查找文件

