Tanmay Pandey
Tanmay Pandey

Reputation: 67

Google Colaboratory shows error when saving a file to Github " Could not fetch branches. "

Created a (assuming public) repo on Github and when saving a file from Google Colab, it shows a warning or error "Could not fetch branches."

The repo is absolutely empty. Do I need to add anything to it?

Upvotes: 2

Views: 1025

Answers (1)

Tanmay Pandey
Tanmay Pandey

Reputation: 67

For anyone reading this in the future, the trick is to initialize the (public) repository with a readme and then it works as intended.

Upvotes: 3

Related Questions