Is Git over Network Share possible?
Asked Answered
E

2

9

Is it possible to share a Git repository in Windows network?

If I add remote origin located in windows shared folder - would this solution work normally?

Etra answered 28/6, 2012 at 8:30 Comment(3)
Better suited for programmers.stackexchange.com/Turbo
Possible duplicate: https://mcmap.net/q/22300/-concurrency-in-a-git-repo-on-a-network-shared-folderPejoration
Yeah, it will work, I've been using it that way for a few months.Husking
W
3

Yes it is working normally.

I used it in Windows Share without a hassle. It was not a bare repository. But I'm 99.99% sure a bare repository will work the same in a network share. Of course, you need the read/write right on that share...

Wherein answered 28/6, 2012 at 9:7 Comment(1)
It just gets rather slow once your repository gets a decent number of files in it (in to the thousands)Belldas
P
6

According to a post in 2009 on the Git mailing list, Git should work seamlessly on NFS and CIFS (e.g. Windows) shares. A similar post here on Stack Overflow seems to corroborate that, and explains a little more about why it should work.

You may want to do your own research, since I wasn't able to turn up anything newer than that. I also don't know anyone personally who does multi-user shared repositories over CIFS, so I'm not going to swear there are zero bugs or edge cases. With all that said, though, it certainly seems relatively low-risk.

Pejoration answered 28/6, 2012 at 9:46 Comment(0)
W
3

Yes it is working normally.

I used it in Windows Share without a hassle. It was not a bare repository. But I'm 99.99% sure a bare repository will work the same in a network share. Of course, you need the read/write right on that share...

Wherein answered 28/6, 2012 at 9:7 Comment(1)
It just gets rather slow once your repository gets a decent number of files in it (in to the thousands)Belldas

© 2022 - 2024 — McMap. All rights reserved.