git public repository URL

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

http://DOMAIN/projects/reponame

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:

http://DOMAIN/projects/reponame/.git

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

http://DOMAIN/projects/reponame

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.
Comment
Watch Question

Do more with

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

Author

Commented:
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