Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selective Folder Sync - How To? #212

Open
flow7 opened this issue Feb 2, 2022 · 4 comments
Open

Selective Folder Sync - How To? #212

flow7 opened this issue Feb 2, 2022 · 4 comments

Comments

@flow7
Copy link

flow7 commented Feb 2, 2022

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

@w00fz
Copy link
Member

w00fz commented Feb 2, 2022

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!

@flow7
Copy link
Author

flow7 commented Feb 2, 2022

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?

@w00fz
Copy link
Member

w00fz commented Feb 2, 2022

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.

@flow7
Copy link
Author

flow7 commented Feb 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants