Cheung
Cheung

Reputation: 15552

Do i need GIT Server for centralized/mirror to get GIT works?

I have worked with SVN using VisualSVN & TortoiseSVN for few years, and it works well for my 10 person department.

Git is very hot today, and I am considering whether or not to move from SVN to Git.

I read many posts on StackOverflow and I have a concept on git which

Git is decentralized & distributed VCS. Users can commit their revision on their local repositories whether the network connection is available or not.

Reference from this posts: Do I need a server to use git?

To get it to work for multiple users, I still need a central Git server with bare repositories only to synchronise and let multiple users sync the files (like SVN - update command) or new users to own the files (like SVN - checkout command).

But my questions are:

  1. Do I really need a server/web space being a bare repo for sync/mirror for general Git work flow?
  2. What system requirement for GIT server? (like SVN have to use Apache)

Upvotes: 0

Views: 157

Answers (2)

linquize
linquize

Reputation: 20366

A Git server is to share repositories among many people. In your case, you have a team of 10, so you need to setup one to share. Team members may push their work when they think that they are ready to share.

You may use apache in httpd.conf, add

SetEnv GIT_PROJECT_ROOT /path-to-git-repo-root
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /url-path-to-git/ /usr/lib/git-core/git-http-backend/

Your url:

git clone http://server/url-path-to-git/xxx.git

Upvotes: 1

Simon
Simon

Reputation: 32873

  1. No, and there is no general git workflow. Read this for examples of distributed worflows.
  2. You only need a computer accepting connections through ssh, and git of course

A useful tool for managing this is gitolite.

Upvotes: 0

Related Questions