Celeb Glow
news | March 25, 2026

Clone GIT from SAMBA network share

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

2 Answers

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

Then,

git clone ~/git/mnt/

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy