File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Central repository in git Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Central repository in git" Watch "Central repository in git" New topic
Author

Central repository in git

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

I have been playing around with git. One of the things I am trying to do right now is set up a central repository. I have seen various tutorials on the web for using gitosis and gitweb to set up a central git repository with HTTP read/browse access and ssh update access. But what I am wondering is if there is any way of getting update access via HTTP/HTTPS? So far I have not been able to find anything on that.

Additional ramblings that can be ignored:

Access via ssh is problematic - a snowball has a better chance in hell that what I would have convincing the corporate IT folks to open port 22 in the firewall. I recall ages ago that when I needed access to public CVS repository that corporate IT installed an extra PC outside the corporate firewall for me to use just for the CVS access. I was so happy when that repository moved to Subversion with HTTP/HTTPS access (and now I have seen posts where that team is looking at git. sigh).

As an aside, I set up a Mercurial central repo with HTTP/HTTPs access without too many problems (well, I was setting it up on Windows and following Linux instructions and getting weird errors whose googled suggested solutions were were "build Mercurial from source", but once I understood what Python was complaining about the solution was actually very simple).


JBoss In Action
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15959
    
  19

I don't know if this will help or not, but one of the advantages of git is that you can download to a local subversion repository and then sync that back up with git.

Whether or not the syncing process can be done in a manner that pleases your masters, I can't say.


Customer surveys are for companies who didn't pay proper attention to begin with.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

That was one of the options I was considering, but I would like to try a pure Git play. Also, I think that having a centralized repository such as Subversion in the mix reduces some of the benefits of using a distributed repository.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15959
    
  19

Well, the Subversion/Git pairing concept wasn't intended to supplant Git or the concept of a central repository. It was intended to allow people to keep a local repository for their own work independent of the repositories that other people might be using (especially if their Internet connections were sporadic). Then when you've got something worthy of a major commit, you push the Subversion back to the central Git repo.

Of course, if you're dealing with a large, unruly pack of relatively undisciplined maybe-committers, it also keeps clutter out of the central repo when people start something and then don't finish it. Linux Torvalds has problems beyond the worst nightmares of most of us.
 
Consider Paul's rocket mass heater.
 
subject: Central repository in git
 
Similar Threads
Version control in eclipse indigo
Setting UP Central repository using GIT
Software Development/Maven/Eclipse
Net Beans with CVS
How to hide some ressources ?