Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

Use this manual (section 'Connecting using CIFS') to mount remote repository:

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

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?

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.