trilbymedia / grav-plugin-git-sync

Collaboratively Synchronize your Grav `user` folder hosted on GitHub, BitBucket or GitLab
Apache License 2.0
243 stars 58 forks source link

Synced folders are supposed to be at root level of the repository #215

Closed sherpadawan closed 2 years ago

sherpadawan commented 2 years ago

I have just tried Git Sync plugin, on a project in which web root is called htdocs (gandi hosting), then pages, config, themes etc.. forlders were created above htdocs... then I tried to delete all those extra directories which ere actually not served (because not under htdocs), and Git Sync deleted all my project files (pages, plugin etc...), all my personnal content disappeard, I rolled back and deactiate the plugin. I don't understand how it works.

hughbris commented 2 years ago

The plugin is designed to sync a repo under user. It's in the README, but should possibly be made more prominent:

Synchronize any folder under user (pages, themes, config)

I didn't write the plugin but I hope that helps.