On Wednesday, June 8, 2016 at 9:24:06 AM UTC-7, Konstantin Khomoutov wrote:
>
>
> Before we begin, is there any real pressing reason to keep things this 
> way?  


Only that I'm new to Git and have never done a conversion like this before. 
 At my previous company they used Atlassian tools alot, so I used 
Atlassian's getting started tutorial, and this was pretty much how they 
showed me to do it.  I'd actually like to put this all on bitbucket, but my 
current company doesn't want the data offsite, and doesn't want to pay for 
the service.
 

> Accessing Git repos via shares should work (and the devs try to 
> make it work) but it was and is a source of subtle bugs. 
>
> The reason is that when you access a repository on a share it's not 
> remote but is rather local: because pushes/fetches are served solely by 
> a Git instance running on your local computer. 
> This poses two problems: 
>
>
> > When I check out Svr10 project, which has a submodule named der_libs, 
> > I use: 
> > 
> > git clone //ntws4/git/Svr10 -b develop Svr10_dev --recursive 
> > 
> > However, my co-worker on Linux, has to use: 
> > 
> > *git clone 
> > /run/user/1000/gvfs/smb-share:server=192.168.1.122,share=git/Svr10 -b 
> > develop Svr10 --recursive* 
>
> You could suggest them take a look at the smbnetfs program which allows 
> to use a slightly more convenient naming scheme.  For instance, I have 
> all my corporate Windows network "mounted" under ~/Network. 
>
> > This works, except for the submodule(s)... for this 
> > project, .gitmodules contains: 
> > 
> > [submodule "der_libs"]             
> >         path = der_libs           
> >         url = //ntws4/Git/der_libs 
> >         branch = develop           
> > 
> > but that URL is not valid under Linux... How do I resolve this??   
> > Is there some way to convert the Samba path into a conventional URL 
> > path ?? 
> > 
> > On a slightly different tack, when I previously worked at a company 
> > that used bitbucket.org, the path that they used was: 
> > g...@bitbucket.org:company_name/project.git 
> > 
> > rather than a URL.  What would I have to do differently here, to be 
> > able to access our repository via the latter syntax ?? 
>
> Try playing with the url.<base>.insteadOf configuration variables. 
> (Run `git help config` and search for "insteadOf".) 
>
> Supposedly something like 
>
>   [url 
> "/run/user/1000/gvfs/smb-share:server=192.168.1.122,share=git/Svr10"] 
>     insteadOf = "//ntws4/Git/der_libs" 
>
> in the .git/config of a repository (or right in ~/.gitconfig for that 
> developer -- to be "global") might work. 
>

Okay, I'll study these options... Thank you! 

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to