我将我的公共 github 存储库克隆到我的驱动器中。我可以将 colab 与笔记本一起使用。我也可以拉。然而,尽管已正确配置,但在尝试推送时仍面临以下错误:
!git config --global user.email "my_email"
!git config --global user.name "my_user"
这样做时,!git push origin master
我收到以下错误:
fatal: could not read Username for 'https://github.com': No such device or address
以前有人遇到过这个问题吗?
上面提到的选项都不适合我。我终于在这篇Medium 文章中找到了答案。基本上,我缺少的关键是:
> !git remote add origin https://<USERNAME>:<PASSWORD>@github.com/<USERNAME>/reponame.git
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句