我试图使用wsl克隆一个存储库,但是我得到了错误。
remote: Repository not found.
fatal: repository '<WORKING LINK>' not found
我可以使用github桌面应用程序或power shell克隆存储库。
我已经尝试删除凭据文件,因为我读到它可能会导致这个问题。
之后,我得到了remote: Support for password authentication was removed on August 13, 2021.
错误。
我不能进入回购的帕特,因为我不是所有者,但我是一个合作者。
存储库是一个私有的存储库。
有人能帮忙吗?谢谢
发布于 2022-09-04 10:24:02
首先,将git配置添加到系统中:
git config --global user.name "Your Name"
git config --global user.email "youremail@domain.com"
然后,您可以创建个人访问令牌从您的Github帐户这里。请注意,PAT是帐户特定的,如果您是回购中的协作者,那么您可以使用PAT来做一些事情(根据您拥有的特权)。
现在,尝试通常使用以下方法克隆您的存储库:
git clone https://github.com/privateRepo/privateRepo.git # using HTTPS
提示将请求您的用户名密码/身份验证令牌。
或
git clone https://username:token@github.com/user/repo
https://stackoverflow.com/questions/73598235
复制相似问题