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?
No, you can't. There's no git running on Google drive.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With