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