I want to have a bare git repository stored in a network share (Windows). I am using linux and have the indicated network share mounted using CIFS. My coleague uses Windows XP, and the network adapter (from ActiveDirectory, somehow) as a network drive.
I wonder if I can use repo from both computers without concurrency problems.
I already tested, and at my end I can clone normally, but I'm afraid of what might happen if we both work on the same repo (push / pull).
The git FAQ has a link to using network file systems (and some problems with SMBFS), but I'm not sure if there is any file locking done by network / server / windows / linux - I'm pretty sure not.
So, has anyone used the git repository on a network share without a server and no problem?
Thank,
Alex
PS: I want to avoid using an http server (or git -daemon) because I do not have access to the server with the shared ones. In addition, I know that we can just push / pull from each other, but we must have a code / repo on the resource for backup reasons.
Update:
My concern is not about the possibility of a network failure. However, we will have the necessary branches locally, and we will be able to collect our sources.
But we usually commit quite often and often need reconnection / merging. From my point of view, the best option would be to have a central repo on the shared resource (therefore backups are guaranteed), and we will both clone from it and use it for rebase.
But, due to the fact that we do this often, I am afraid for damage to the file / repo , if this happens, we both push / pull at the same time. Usually we could yell at each other every time we access the remote repo :), but it would be better if it was protected by computers / network.
And it is possible that git has an internal mechanism for this (since someone can click on one of your repositories while you are working on it), but I have not found anything convincing yet.
Update 2:
A repo on a shared drive would be a bare repository without a working copy.