10

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.

  • 1
    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
3

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.

  • 2
    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
  • 1
    This answer is pretty useless when all it does is provide a link. – magnattic Jun 15 '14 at 15:34
5

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...

2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.