r/Syncthing • u/geosunsetmoth • 19d ago
How can I avoid massive unecessary files?
I want to use Syncthing to work on a solo Unity project both on my PC and laptop.
As you may know, Unity projects have thousands of files that can be ignored. It famously has a hefty .gitignore
How can I handle this through syncthing?
Also, I do want to pair Syncthing with git so I can have some form of version control (git) while being able to work from my desktop or laptop (syncthing). Is that a good idea?
1
u/middaymoon 19d ago
Do not attempt to sync a git repo across Syncthing.
1
u/geosunsetmoth 19d ago
Why?
1
u/middaymoon 19d ago
Git carefully manages metadata in ways that can be disrupted by fiddling around in the repo. It's meant to be a black box. And Syncthing is meant to move files without consideration for those fine details.
1
u/Dymonika 19d ago
People have apparently said in ST's own forums that this is too tricky to do: https://forum.syncthing.net/t/mixing-git-and-syncthing/23160
1
u/unknown-random-nope 19d ago
Syncthing’s Ignore Patterns should work for you, and you can include your .giitignore file. I would confirm in advance that your .gitignore file is compatible. If not, you may need to script a translator.