github如何修改公有仓库变私有
进入该仓库——Settings——拉倒最底部Danger Zone——Change repository visibility——change visibility
首次克隆时,报错:
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for ‘https://github.com/test/webpack.git/’
原因:
git clone时 克隆链接需要带有tooken
tooken如果未创建,创建步骤
点击github右边个人主页头像下拉,记住,是个人主页,不是仓库主页!!!(本人使用时在仓库主页找了半天,都没找着Developer settings。。。),即:
第一步 个人主页下拉打开settings
第二步 最左边的管理栏找到 Developer Settings
第三步 左边的 Personal accsess tokens
第四步生成 新的token
第五步 首先起好token的名字 然后选择无期限 no expiration (看需求)
第六步 最少选中repo 其余的权限看着给

用tooken 克隆仓库
拼接token和http链接:https://$THE_Token@git.com/test/test.git
本文介绍了如何在GitHub上将一个公有仓库改为私有,包括进入设置、更改仓库可见性等步骤。当克隆仓库时遇到认证失败的问题,文章详细说明了原因——需要使用token。创建token的步骤包括访问个人设置、开发者设置和个人访问令牌。最后,文章提供了使用token克隆仓库的方法,即在URL中添加token进行身份验证。
1781

被折叠的 条评论
为什么被折叠?



