Originally I try to use gitosis to manage the git repositories in the company, and later notice gitolite is kind of enhancement of gitosis.
And also I heard gerrit could be used for the same purpose, but from the description, gerrit is mainly used for code review.
So which is the best way for setting up git server
Can you give some suggestion ?
BTW: http://gitorious.org/ is considered in the future
Gerrit (/ˈɡɛrɪt/ GERR-it) is a free, web-based team code collaboration tool. Software developers in a team can review each other's modifications on their source code using a Web browser and approve or reject those changes.
The most popular Git hosting sites are GitHub and Bitbucket. Both offer free hosting with certain limitations.
The number one, at least in terms of popularity, is definitely GitHub – the most famous web-based Git repository hosting service. Officially over 70 million users are registered there. This is not a coincidence as GitHub provides many useful features and is in many cases free, e.g. for open-source projects.
With GitHub, you would have a string of additional commits in the branch you used for opening the pull request. In Gerrit, you still only have that one commit in your local branch. All the iterations are available as patchsets in the Web UI as well as from the special branch mentioned above.
If you're going to use gerrit at all, you might as well use it for hosting as well as code review -- the workflow is easier that way, as gerrit will manage merging your reviewed code into its repository, and that's what you want to be publishing -- if you host elsewhere, you're going to have to either set up a method for automatically pulling from gerrit or you're going to have a way for your developers to bypass the code review by pushing their changes straight to the hosted repositories and ignoring gerrit altogether.
Recent versions of gerrit can integrate gitweb, giving you the nice web interface to browse with, but protected by the ACLs you've set up.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With