git public repository URL

drewrockshard used Ask the Experts™
Was wondering if there was any writeup on publishing public git repositories using somewhat of the following URL format:


Basically I just want a main repo directory (projects) to hold the repos - and they would be  named such as "repo1" or "backupjob", etc. Inside these "repo" directories, would be a folder with all git information, called ./.git.  So URLs would follow as:


So, so no one is confused, the final product I want to be checked out (URL wise) would be the following:


And I want to be able to git clone these URLs.

I am just looking for documentation on this particular setup, or even if someone has the time to show me some commands, however, I could be calling these "remote repositories" the wrong name.  Let me know.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®


Is there any additional code or links you could provide to get me going on this.  I spent about 2 hours trying to understand and get this working, but its just not working quite right.  I can checkout the repository, but I can't push the code back to the server for an update (remotely).  I can if I'm on the box directly.
That's not how git works. You export your repository using http and if someone else wants to contribute they send you a patch, or you pull their changes.

For read-write access use ssh.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial