5

Has anybody successfully cloned GIT repository to Ubuntu from a SAMBA network share?

I have access over file manager and can ls over command line, but cannot clone

Also, in git cola, qgit and gitg I cannot see mounted SAMBA network share.

1
  • what error are you getting trying to clone of the git repository, and what's the command you're running?
    – jelmer
    Feb 24, 2014 at 21:06

2 Answers 2

4

Use this manual (section 'Connecting using CIFS') to mount remote repository: https://help.ubuntu.com/community/Samba/SambaClientGuide

sudo mount -t cifs //IP_ADDRESS/git/repo.git ~/git/mnt/repo.git -o username=samba_user,noexec

Then,

git clone ~/git/mnt/repo.git/
4

Another way to do this would be to clone gvfs user-mounts

git clone /run/user/<username>/gvfs/path_to_repo/repo.git

This avoids mounting issues

See also: Where can I find the mount point for SMB shares in 13.04?

2
  • With samba, I could do it by directly by accessing the samba project files from the local. Did not need to clone the repo.
    – maan81
    Aug 13, 2017 at 5:33
  • 1
    Worked fine for me, but later I failed to push.
    – Mefitico
    Aug 12, 2020 at 18:53

You must log in to answer this question.

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