如何在Colab上克隆共享的私有git回购?

如何在Colab上克隆共享的私有git回购?,git,github,Git,Github,我在使用Colab克隆Github上与我共享的Git私有存储库时遇到问题。我试过这些: !git clone https://<my_username>:<my_password>@github.com/<shared_private_repo_username>/<private_repo>.git !git clone https://<my_username>:<my_password>@github.com/<

我在使用Colab克隆Github上与我共享的Git私有存储库时遇到问题。我试过这些:

!git clone https://<my_username>:<my_password>@github.com/<shared_private_repo_username>/<private_repo>.git
!git clone https://<my_username>:<my_password>@github.com/<my_username>/<private_repo>.git
!git克隆https://:@github.com//.git
!git克隆https://:@github.com//.git
我得到一个错误:

remote: Invalid username or password.
fatal: Authentication failed for <url_used>
remote:无效的用户名或密码。
致命:的身份验证失败
我克隆了我自己的存储库以进行检查,它可以正常工作

如何访问共享存储库中的文件?

请确保您没有:您必须使用密码而不是密码。
如果它适用于您的个人存储库,那么这不应该是问题所在

还可以尝试一个SSHURL

git clone git@github.com:<shared_private_repo_username>/<private_repo>.git
git克隆git@github.com:/.git
假设您的GitHub帐户上有密码。

请确保您没有密码:您必须使用密码而不是密码。
如果它适用于您的个人存储库,那么这不应该是问题所在

还可以尝试一个SSHURL

git clone git@github.com:<shared_private_repo_username>/<private_repo>.git
git克隆git@github.com:/.git
假设您的GitHub帐户上有