在Github中,fork到自己账号中的仓库无法在“Settings”中的“Danger Zone”修改为“Private”,提示“For security reasons, you cannot change the visibility of a fork.”,可能会导致隐私泄露等问题,所以需要通过间接的方法,构建一个Private的仓库。
①新建一个用来导入的仓库
鼠标靠近右上角的“+”号,在展示的下拉菜单中点击“Import repository”

②填写并修改相关仓库信息
在“The URL for your source repository”下方的框中粘贴你想fork的仓库网址
在“Your new repository details”下方的“Repository name”中填入自己取的仓库名称
默认仓库设置为公开(Public),需要点击下方的选项切换为私密(Private)

③点击按钮开始导入仓库
点击下方绿色的“Begin import”按钮,之后Github会进行仓库的导入,导入成功后会通过邮件进行通知

Comments NOTHING