grav-plugin-git-sync icon indicating copy to clipboard operation
grav-plugin-git-sync copied to clipboard

Selective Folder Sync - How To?

Open flow7 opened this issue 3 years ago • 4 comments

Hi there, I've just installed this plugin and really love it. However - I can't quite figure out how to just sync the things I actively work aka one theme ie. MyTheme and one particular plugin ie MyPlugin

When I first install the plugin, the Wizard leaves me no choice but to choose the entire Themes and Plugins folder. And then syncs the whole thing :( When I later edit those entries by writing /themes/MyTheme and /plugins/MyPlugin in the settings I'm informed that removing folders after syncing doesn't work well, or so.

Any recommendations how to achieve the selective sync? And how to avoid populating the github repo with all the other folders from /themes and /plugins, that I don't need synced (i think) ? Thanks a lot

flow7 avatar Feb 02 '22 21:02 flow7

That's the way to go about it, you remove themes and change it to your specific one (ie, themes/quark).

The notice is about when you do this switch, the undesired effect are that GitSync might not be able to properly remove the folders pushed that you now want removed, so that is something you might have to clean up manually yourself. After that it should just work fine and only sync your on theme/plugin.

Hope this helps!

w00fz avatar Feb 02 '22 22:02 w00fz

thanks for the fast reply!! 👍

Beginner question: where do you recommend me to remove those folders? As in, I want to keep them in my grav setup, but remove them from the synced stuff. Shall I delete from the Github repo?

flow7 avatar Feb 02 '22 22:02 flow7

Yes you definitely want to keep these folders in your environment but then remove them from GitHub. Make sure you do save the GitSync configuration with the new folders setup first, otherwise they will be pushed back into GitHub.

w00fz avatar Feb 02 '22 22:02 w00fz

Thanks - will try later today and report back back ;)

flow7 avatar Feb 03 '22 09:02 flow7