Git clone/pull across local network

Posted by Tom Sarduy on Server Fault See other posts from Server Fault or by Tom Sarduy
Published on 2013-01-07T20:49:05Z Indexed on 2013/10/31 9:57 UTC
Read the original article Hit count: 245

I'm trying to clone/pull a repository in another PC using Ubuntu Quantal. I have done this on Windows before but I don't know what is the problem on ubuntu. I tried these:

git clone file:////pc-name/repo/repository.git
git clone file:////192.168.100.18/repo/repository.git
git clone file:////user:pass@pc-name/repo/repository.git
git clone smb://c-pc/repo/repository.git
git clone //192.168.100.18/repo/repository.git

Always I got:

Cloning into 'intranet'...
fatal: '//c-pc/repo/repository.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

or

fatal: repository '//192.168.100.18/repo/repository.git' does not exist

More:

  • The other PC has username and password
  • Is not networking issue, I can access and ping it.
  • I just installed git doing apt-get install git (dependencies installed)
  • I'm running git from the terminal (I'm not using git-shell)

What is causing this and how to fix this? Any help would be great!

UPDATE

I have cloned the repo on Windows using git clone //192.168.100.18/repo/intranet.git without problems. So, the repo is accessible and exist! Maybe the problem is due user credentials?

© Server Fault or respective owner

Related posts about networking

Related posts about git