I copy my projects folder, but I would like to sync the .git folders inside them. So in the end my projects folder should be copied while the .git folders inside them should be synced.
This is the filter file that I used for syncing the git folders,
+ .git/**
- *
Tried - ** as well.
This just deleted all the .git folders from my remote instead of syncing them. Would really appreciate if someone can point me what I'm doing wrong.
Can you show the full command you used? The --filter-from file looks OK I think - match a directory called .git and any of its contents anywhere in the tree.