Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
what error are you getting trying to clone of the git repository, and what's the command you're running? –  jelmer Feb 24 '14 at 21:06

1 Answer 1

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


git clone ~/git/mnt/repo.git/
share|improve this answer

Your Answer


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.