Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
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
add comment

3 Answers

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
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 at 16:00
    
Link does not work (again?) –  Janis Veinbergs May 14 at 12:23
show 1 more comment

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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