My team and I use a git repository to keep track of our projects. This repository is cloned in our Windows PCs that we use to develop most of our software. However, we also use another machine ( a linux VM, which we access through ssh ) to develop other parts of our software.
The idea here is to keep track of the files/directories in this virtual machine and sync them to git. The trivial (and current) solution is to manually copy the files from the VM to our PCs, and then commit them to git.
I am sure there is a better way of doing this without having to manually copy the files every time we make some changes. Suggestions are greatly appreciated!
Edit: I should have added that the git project is quite big (~3.5 GB) and the VM has limited space, therefore I cannot clone the whole repo in the VM