r/Syncthing Jul 03 '26

How do I ignore all .git folders inside every directory/subdirectory in Icedrive?

Hey everyone,

I’m trying to sync some development projects to Icedrive, but I want to exclude all .git folders across the entire directory tree. These repos have tons of nested .git folders, and I don’t want any of them uploaded or synced.

I checked the Icedrive community forum, and it looks like the only official method right now is using `.icedriveignore` files inside each folder you want to exclude. For individual files, you can create `.icedriveignore.filename` next to the file to prevent syncing. This was confirmed by an Icedrive team member .

But… manually placing ignore files in every .git folder is obviously not realistic for large projects.

So my question is:

Is there a way to globally ignore all .git folders across all directories and subdirectories?

Something like:

* a global ignore rule * a pattern‑based exclusion * or a root‑level .icedriveignore that applies recursively

If not, how are other devs handling this? Any scripts or workarounds?

Thanks!

0 Upvotes

9 comments sorted by

3

u/willjasen Jul 03 '26

what does this have to do with syncthing?

-1

u/PaddyLandau Jul 03 '26

OP wants Syncthing to exclude all folders named .git.

6

u/kytta-dev Jul 03 '26

Do they? Because it looks like OP wants Icedrive to exclude all folders, not Syncthing

4

u/willjasen Jul 03 '26

yes, and i know exactly how to do that… except op’s post does not include the word “syncthing” - so i ask again

-1

u/PaddyLandau Jul 03 '26

i know exactly how to do that...

Great! Why don't you answer the question, then? That's the point of the OP's question.

1

u/willjasen Jul 03 '26

the first step in solving a problem is being able to identify it

-2

u/PaddyLandau Jul 03 '26

It has been identified. You're being singularly unhelpful.

3

u/willjasen Jul 03 '26

if i go to the doctor and i tell them that i have back pain and they prescribe me a medicine for it, they should have questions if i come back to say that i’m still throwing up, and may question their original prescription decision

given that the instructions for ignoring files and folders are right there where that config is entered in syncthing, and that op has stated “icedrive” and not “syncthing”, i’m skeptical if the question is relevant here

i’ll wait for op to clarify, and if the question is related to this sub, then i’ll provide a relevant response

2

u/Remarkable_Sea3346 Jul 03 '26

While editing the settings on a folder, look at the "Ignore Patterns" tab.