2011年8月10日 星期三

Setup GIT server by git-daemon

  1. Installing git-daemon
    sudo yum install git-daemon
  2. Start the git daemon
  3. git daemon
    git daemon --export-all
  4. Prepare the repository
    To allow git-daemon to read your project you have to add the file .git/git-daemon-export-ok to your project. Or use --export-all option to git-daemon

And...done!!!

There is no access control in git-daemon.


8 Ways to Share Your Git Repository
http://agile.dzone.com/news/8-ways-share-your-git

Git: trouble with setting up daemon, trouble with git clone
http://stackoverflow.com/questions/1112622/git-trouble-with-setting-up-daemon-trouble-with-git-clone

沒有留言: