git - 如何将 GitHub 存储库链接到 Google Colab 笔记本?

标签 git google-colaboratory git-clone

我已经创建了一个 GitHub 存储库,我想将它链接到我的 Colab 笔记本,但我无法做到这一点。我使用以下命令获取 git repo 的克隆:

! git clone link/to/your/repo

但是我得到这个错误:

fatal: repository 'link/to/your/repo' does not exist

有人可以指出我的错误吗?谢谢!

最佳答案

当您在 Colab 网站中使用时:

您可以直接转到 Google Colab您可以在方框中选择“GitHub”,您只需转到 Colab 站点并登录即可看到该方框。 Colab 会自动将您重定向到 github 以授权您的 github 帐户。然后您可以选择要在 Google Colab 中使用的存储库!

在本地 CLI 中使用时:

您需要检查您在命令中提供的 URL。 它必须是一个有效的 git(hub) url。

关于git - 如何将 GitHub 存储库链接到 Google Colab 笔记本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67553747/

相关文章:

git - 如何找出当前分支基于的 git 分支?

python - 如何将 tensorflow 模型保存到谷歌驱动器

Git 克隆 : Redirect stderr to stdout but keep errors being written to stderr

git - 获取任意 git 工作副本并制作与远程分支完全相同的副本

python - 如何在google-colaboratory上永久上传数据?

git - 尝试 heroku git :clone after heroku fork yields an empty repository

git - SourceTree 中的 IntelliJ 差异工具

Github:删除 fork 后 fork

删除远程分支后 git upstream 消失了

python-3.x - 属性错误: module 'flax' has no attribute 'optim'