Gitolite repositories management
I am new to Gitolite and getting hard time on managing repos in it. We have 1000+ repositories in our git server and 200+ users. It look so messy when we run ssh git@hostname, it gives me the drop down list of those repositories With write access and read access both.
Also when i want to clone ‘y’ repo, i run the command;
git clone git@hostname:x/y
but if want to clone folder ‘z’ under ‘y’
git clone git@hostname:x/y/z —-it gives me following error
Initialized empty Git repository in /home/123456/z/.git/
R access for x/y/z DENIED to vb-ubuntu-32
(Or there may be no repository at the given path. Did you spell it correctly?)
fatal: The remote end hung up unexpectedly
I don’t want to keep creating separate repos under the same folder like for ‘z’.
Is there any way that i can clone only the content of the repo?
My repo list is getting huge with the same multiple repos like below
i dont know if my gitolite setting is not configured correctly.
Thank you for your support in advance.
One Solution collect form web for “Gitolite repositories management”
The main gitolite feature which is close to what you are looking for is called namespaces:
In many projects, developers need to push their work to some central place for others to fetch.
Namespaces allow you to give each developer what looks like her own repo or set of repos, while combining all these logical repos into one physical repo on the server. This saves a lot of disk space if they all share a lot of common history.
It combines namespace-like path for the repo (
x/y/z) with less repos on the server.
(read its documentation carefully though)
But even then,
y cannot be a repo, as Chronial mentions.
I wonder if there is way to clone the folder or files from the git server (using gitolite) inside the particular repo. Like
zis folder inside
How to clone
zonly for that repository?
You can clone a repo within another (nested repos), but the official way to do that is to use