Is the following a valid syntax:
*
!**/
!**.rs
!**.toml
Is the following a valid syntax:
*
!**/
!**.rs
!**.toml
Valid syntax, but probably won’t match what you’re expecting to happen.
Could you describe or provide an example of what you’d like it to do?
You need to change the order, e.g. like this.
!*.rs
!*.toml
*
I’ve removed the other line, because I cannot deduce what it was supposed to match . Also changed the unnecessary double
**
to single *
.
On my main PC, I use Debian. I have a separate Raspberry Pi 5 as a backup. I use Syncthing to achieve this, and it works well as long as I don’t try to use .stignore
. But in cases as a coding project far too many files get synchronized. When developing code in Rust, I only want to sync the most important files, which are the files with the extensions .rs
and .toml
. But I can’t get it right. Either everything syncs or nothing in the Rust project syncs. This means I don’t understand the syntax in .stignore
. When I remove .stignore the sync process starts immediately.
I have also tried with
!*.rs
!*.toml
*
No success.
That should work.
Hmm. I must do something wrong in another perspective. Any ideas?
Show your work, i.e., screenshots etc.