Search code examples
gitsambanfs

Git repository on NFS/Samba


Are there any thing to worry if my Git repository is on NFS/Samba?

E.g. file locking in NFS is not reliable, so it will affect the Git?


Solution

  • As long as there's only one person accessing the repository, you'll be fine. Don't share a repository among users that way. Your data will be safe, but simultaneous pushes might conflict on what ends up at the HEAD of each branch.