Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Samba share set up that I'd like to put a git repository on. I've tried searching google for the best way to use git on a Samba share, but it seems difficult to find anything on doing this as Samba uses git for development.

What is the best way to do this? Right now, I'm just working with Linux, but it would be nice to know how to do this in a cross-platform manner as well.

share|improve this question
i do not see any problems here, samba delivers files .. put the git repo on the share and end of story. – akira Jan 11 '10 at 12:18
up vote 3 down vote accepted

The best way to access a git repository over a network in a platform independent manner from a single machine would be to run a git server on the machine. For how to setup a server, checkout this.

share|improve this answer
Your link has died, do you have another source? – James Caccese Sep 15 '11 at 21:14
Bump, for the dead link. – Drew Noakes Mar 28 '12 at 23:41
Ok I've updated the link to one from ProGit. – anand.trex Apr 3 '12 at 2:48
Does not seem to answer the question. Nobody asked for the "best way". – ceving Jan 8 '14 at 16:00
Link does not work (again?) – Janis Veinbergs May 14 '14 at 12:23

I do this all the time, and it works fine, just access the git repository over the file share as if it was local. I do this because I develop on windows but my test server is a linux box, so with a samba share I do not have to be pushing my changes to the server all time.

Be aware though, that different operating systems handle things like modified timestamps & line endings differently, so I do not recommend developing like this if you will be using the same repository over samba from multiple different operating systems. You will find when you switch from windows to linux (for example) that git will detect a bunch of files have changed, when the actually haven't...

share|improve this answer

Well, if you don't want to spend time configuring a lof ot stuff, you could just use a Dropbox account and set your git repository in your Dropbox folder.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .