Laura Taylor, (Taylor 2021)
Mount Google Drive locally
- Linux: I prefer
rclone
(a) - Windows: Google Drive (a)
- Mac: Google Drive (a)
- Linux: I prefer
Navigate to your local git repository you’d like to host on Google Drive
Create a bare git clone:
git clone --bare \ . \ PATH_TO_GDRIVE/.../PROJECT_NAME.git
Example:
git clone --bare . /mnt/gdrive/projects/addon.git
Add this bare repository as a remote:
git remote add \ REMOTE_NAME \ PATH_TO_GDRIVE/.../PROJECT_NAME.git
Example:
git remote add gdrive /mnt/gdrive/projects/addon.git
Push/pull project as you usually would from github/gitlab/etc
Bibliography
Taylor, Laura. 2021. “Git + Google Drive = Simple Git Host.” Medium. https://techstreams.medium.com/git-google-drive-simple-git-host-3a84db4fc1fd.