How to ignore. git but still sync .git/config for all my projects?

.stignore works great but I can’t find the answer to the following:

How to ignore. git but still sync .git/config for all my projects?

Also .stignore is only at the root folder yes?

I tried adding a .stignore to the projects_code subfolder but it doesn’t work correct?

Thanks in advance. I am trying this for a few hours now :slight_smile:

!.git/config
git

Please bear in mind that there is an active issue related to using ignore patterns like these (see https://github.com/syncthing/syncthing/issues/7740). I would say that it is more on the cosmetic side though, as the folders themselves are still synced regardless.

Yes, only the one in the root folder is used. You can still add patterns affecting only subfolders to it, etc.

Thanks for the swift reply.

That’s what I tried and I was sure that didn’t work before I post here :slight_smile: hmm. Okay I will try again later today and report back.

Thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.