I am trying to host a git repository. I am now able to clone git repo on any machine within the network with:
git clone gituser@192.168.0.133:/home/gituser/repositories/gitosis-admin.git
But I need to give absolute path of the repo location.
Is it possible to clone without specifying repo path? like for e.g.
git clone gituser@192.168.0.133:gitosis-admin.git
Thanks in advance,
You should be able to clone using a path relative to your home directory on the remote machine. So, for example,
git clone gituser@192.168.0.133:/home/gituser/repositories/gitosis-admin.gitcould becomegit clone gituser@192.168.0.133:repositories/gitosis-admin.git.