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 Setting UP Central repository using GIT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Setting UP Central repository using GIT" Watch "Setting UP Central repository using GIT" New topic
Author

Setting UP Central repository using GIT

Ramesh Sunkara
Ranch Hand

Joined: Mar 01, 2010
Posts: 78
Hi Folks,

I am trying to setup a central repository for my project.

I decided to use git.

But unfortunately I couldn't do that.

Since all the available tutorials/manuals which says how to setup "GIT central repository on Window Server" were too old .Because all the software they told to use [ like msysgit,cop ssh,tortoise git ] are available in latest versions and the options mentioned in the tutorials & the options present in these software are not matching.

Especially using copssh is my problem.

Mean while I found that GIT can be used via HTTP and SSH also.

But I couldn't understand the advantage and dis-advantages between the above methods.

Can any one suggest or provide me manual how to do a setup?

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

This is the tutorial that I used: http://ao2.it/wiki/How_to_setup_a_GIT_server_with_gitosis_and_gitweb

I eventually ended up rejecting git for use at my company mainly because of the lame central repository support. By comparison, Mercurial comes with a built-in command to run a central repository (for low usage), and instructions for integrating with Apache HTTPD for higher usage. Additionally, Mercurial allowed HTTP/HTTPS to be use for both reads and writes but as far as I could tell git provided only read access via HTTP/HTTPS - writes required ssh access. Fat chance in getting that port opened in the corporate firewall!


JBoss In Action
Ramesh Sunkara
Ranch Hand

Joined: Mar 01, 2010
Posts: 78
Hi Peter

Thanks for your time.

I checked the link which you used. But its not useful for me since am working on windows platform.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Sorry, I thought I had set it up on Windows but apparently I used Ubuntu. I suspect that you won't find any instructions for installing git on Windows - git is very Linux-centric. You will have to set up a Linux system and create your central git repo there.

There is a possible alternative - set up a central git repo on a Windows share, and then have each developer connect to that share to access the repository. That is one of the nice things about it - you don't have to set up a web site to have a remote repository, leveraging the file system works just as well.
Ramesh Sunkara
Ranch Hand

Joined: Mar 01, 2010
Posts: 78
Exactly am trying to do the same you mentioned.

But struck in between due to lack of proper guide
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting UP Central repository using GIT