将Git与Google Colab结合使用的方法 [英] Methods for using Git with Google Colab

查看:270
本文介绍了将Git与Google Colab结合使用的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有推荐的方法将git与colab集成?

Are there any recommended methods to integrate git with colab?

例如,是否可以处理来自Google源代码库或类似代码的代码?

For example, is it possible to work off code from google source repositories or the likes?

Google驱动器和云存储都不能用于git功能.

Neither google drive nor cloud storage can be used for git functionality.

所以我想知道是否还有办法做到这一点?

So I was wondering if there is a way to still do it?

推荐答案

git已安装在计算机上,并且可以使用!调用Shell命令.

git is installed on the machine, and you can use ! to invoke shell commands.

例如,要克隆git存储库:

!git clone https://github.com/fastai/courses.git

这是一个完整的示例,该示例克隆存储库并加载存储在其中的Excel文件. https://colab.research.google.com/notebook#fileId=1v -yZk-W4YXOxLTLi7bekDw2ZWZXWW216

Here's a complete example that clones a repository and loads an Excel file stored therein. https://colab.research.google.com/notebook#fileId=1v-yZk-W4YXOxLTLi7bekDw2ZWZXWW216

这篇关于将Git与Google Colab结合使用的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆