需要有私有仓库的访问权限
HTTPS
直接clone
git clone https://github.com/privateRepo/privateRepo.git
命令行会弹出一个身份验证,验证通过即可
或者(没有尝试过)
git clone https://username:token@github.com/user/repo
或者
git clone https://<personal_access_token>@github.com/<your account or organization>/<repo>.git
token(personal access token)可以到Setting->Developer Settings下创建
或者(没有尝试过)
git config --global user.name "yourUserGit"
git config --global user.password "yourPasswordGit"
git clone "https://github.com/user/repoName.git"
SSH
在本地生成一个ssh key,让仓库所有者部署在仓库里即可
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/bian-cheng-ri-ji/38689.html