I want to be able to make backups of my project in a windows environment without having to manually copy and paste my whole folder. Unfortunately I am not allowed to use a remote git server for this project, so I was wondering if I could use git for backing up my project on a mounted hard drive.
I have tried this solution:
git remote add Y file:///path/to/Y
However, when I try to push I receive this error:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I tried to init a bare repository on my mounted device and local directory but I faced the same error.
Summarizing, I want to be able to backup my project in a windows environment automatically or with few commands such as git commit and git push. Any ideas?