Laura Taylor, (Taylor 2021)

  1. Mount Google Drive locally

  2. Navigate to your local git repository you’d like to host on Google Drive

  3. Create a bare git clone:

    git clone --bare \
        . \
        PATH_TO_GDRIVE/.../PROJECT_NAME.git
    

    Example:

    git clone --bare . /mnt/gdrive/projects/addon.git
    
  4. 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
    
  5. 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.