Laura Taylor, (NO_ITEM_DATA:taylorGitGoogleDriveSimpleGitHost2021)

  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

References

NO_ITEM_DATA:taylorGitGoogleDriveSimpleGitHost2021

Links to this note