Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to manage a GIT non-bare repo from Google Drive?

I'm a Javascript developer and I'm working on a online JS editor with Google Drive integration showing your Drive files in a side bar. As many JS developers uses Github as repository I would love to allow commits, pull and push from the sidebar.

The problem is those files are stored on Google Drive so I should have to execute the "git commit", "git pull", etc... in the Drive folder. Does anybody knows if it's possible?

I've googled a lot but everything I found is about use Drive as storage for a git bare repository. I want to keep Github as central repo, I just want to have a clone in my Drive account.

Any ideas?

like image 889
A. Matías Quezada Avatar asked Dec 06 '12 15:12

A. Matías Quezada


People also ask

Can you use Google Drive as a git repository?

No, you can't. There's no git running on Google drive.

What is a non bare repository?

A non-bare repository is what you're used to working with, which includes both the git index and the checked out copy of working files. Typically, a bare repository is used as a remote; we push changes from our working non-bare repository into a bare repository.


1 Answers

Now that I understand the question...

I think you need a file system driver that talks to the Google Drive API. That would let Git talk to the Google Drive API like it talks to every other filesystem without having to load all of the Google Drive files, code, etc.

like image 132
Mark Leighton Fisher Avatar answered Sep 27 '22 23:09

Mark Leighton Fisher