Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Colab cannot access Github private repositories

I'm trying to save my colab notebook to a private Github repository, but it, and all of my other private repositories, do not appear in the dropdown list when I click "Save a copy to Github." Any help would be appreciated.

like image 473
Alex Avatar asked Apr 12 '18 21:04

Alex


People also ask

How do I use GitHub repository in Google Colab?

To do so from within a Colab notebook, click File → Save a copy in GitHub . You will be prompted to add a commit message, and after you click OK , the notebook will be pushed to your repository.


2 Answers

I encountered the same problem. You should give colab access to your private data to fix it:

  1. Go to colab main page colab.research.google.com.
  2. Go to GitHub tab.
  3. Check the checkbox with the label "include private repos".
  4. Then colab will request access to your private GitHub data, you should provide it.
  5. After this you should see private repos in a list when you try to save a notebook in GitHub.
like image 99
Azatik1000 Avatar answered Sep 28 '22 05:09

Azatik1000


Update: Colab now supports Github private repositories.

like image 21
Alex Avatar answered Sep 28 '22 07:09

Alex