So far:
I have apache and git-http-backend running on my own (home) server. I can ssh to the server and create a repository. I am able to clone the servers repo locally, make changes and push back to the server.
I am going to create many small projects. On svn I used to have few repositories and the projects were simply subdirectories. svn supported to fetch only subfolders and assume they are projects. In git, I failed to clone from a subfolder, and it appears to me, that a project should be in it's own repository. My question is: How can I create a repository (actually a project) without ssh into the server. (I have ssh only enabled from within my home network, btw.)
I have tried gitweb, but that seems to be a read-only tool. I have tried to "git init --bare https://...", but that interpreted the path as a local relative path.
CodePudding user response:
If you're just using the standard git-http-backend
command and Apache, then there's no way to automatically create remote repositories over HTTPS. You have to log into the server and create them by hand because Git only serves repositories that exist on the local disk already.
If you're using a tool like Gitolite, you can set up wildcard rules to allow creating repositories automatically by just cloning them.