Methods for using Git with Google Colab

前端 未结 12 796
臣服心动
臣服心动 2020-12-12 11:42

Are there any recommended methods to integrate git with colab?

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

Nei

12条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-12 12:04

    Cloning a private repo to google colab :

    Generate a token:

    Settings -> Developer settings -> Personal access tokens -> Generate new token
    

    Copy the token and clone the repo (replace username and token accordingly)

    !git clone https://username:token@github.com/username/repo_name.git
    

提交回复
热议问题