Git sync and problem with gitignore

I have a configured repository (Bitbucket) and a Git Sync plugin.

I am sending folders with user including themes.

In the themes/mytheme folder there is a folder node_modules which I cannot block from uploading.

I tried to add in the plugin configuration:


but it sends me this directory with its contents every time.

The path is to be given relative to the Grav root directory?

There is also a .gitignore file on Bitbucket with different content. So which configuration is used?

There are a few similar issues in the plugin’s repo. If none are the same, I suggest adding your question as a new issue there. I doubt you will get much help here but you might.