How to update global state from local folder?

Hi, i added ignore patterns to my macbook. Now local state has fewer files, than global state. I want to push local state to global, so it will be pushed to my phone. At this moment my phone has all original files(before ignore pattern)

macbook(send only) -> oppo phone (receive only)

What if you add the same ignore patterns on the phone, wait for the global state to become identical, then remove them again?

Thanks, will try this. But anyway how to deal with it in the future? Every time duplicating ignore patterns isn’t ideal

I don’t think there’s any other way to get rid of them once already added to the global state.

The “.stignore” is not synched, as you probably already know, so yes it is a bit of a hassle to duplicate ignore patterns in that file. But there is an alternative: In “.stignore” on both devices, write for example this:

#include ignore.txt

… And create a file with that name in the root of the shared folder of one of the devices, and write your ignore patterns there. Voila, your ignore patterns are automatically kept in sync!

2 Likes

Thank you! This workaround helped a lot!

1 Like