atkuzmanov
atkuzmanov

Reputation: 469

Colab can't save changes to GitHub PUBLIC and PRIVATE reports

Colab cannot save to any of my GitHub repos regardless whether they are public or private. The error I get:

You do not have permission to save this notebook. To keep your changes, make a copy of the notebook.

State:

Workflows to reproduce bug:

I tried creating a new notebook in Colab and saving it to GitHub - this works, it commits it to the repo, however when I open the newly notebook created book in Colab I get the same error "You do not have permission to save this notebook. To keep your changes, make a copy of the notebook.".

Here are more details and things I have tried to troubleshoot:

What new things could I try? At this point, even only being able to save to public repos would be great!

Upvotes: 7

Views: 5155

Answers (1)

atkuzmanov
atkuzmanov

Reputation: 469

I also opened an issue in GitHub and I got a reply:

Unfortunately, I suspect you're just running into an issue of bad UX on our side. In order to save back to GitHub you always have to use "Save a copy in GitHub". Colab doesn't yet support auto-save or Ctrl+S saving back to GitHub because it requires making a commit back to the repo but it's a bit misleading that the intended save flow looks like it's making another copy. So, work-around is "Save a copy in GitHub" -- hopefully that works for you for now.

Reference

GitHub issue: Colab can't save changes to GitHub public and private reports #2518

I have replied and asked if this is already a feature they have in mind and if not if we can make it a feature request.

I guess we can hope that this gets implemented soon and in the mean time we can use the suggested workaround "Save a copy in GitHub".

I also hope this serves as information to anybody that stubmles on the same pitfall as myself.

Upvotes: 13

Related Questions