码迷,mamicode.com
首页 > 其他好文 > 详细

中局域网LAN中建立局域网可访问的类GitHub的服务器

时间:2015-02-11 18:11:09      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:

There are several ways to do this

  1. Host internal repositories like Gitlab (free software) or Stash. This will be similar to services like BitBucket or GitHub
  2. If you want to have a simple service with SSH authentication - user3159253 has already answered that
  3. A very bare bones way is
    1. Create a bare repository - example git init . --bare
    2. Start the git daemon - example git daemon --base-path=<absolute full path to git repo
    3. Add that repo as git remote add RepoName git://your.local.host.name/myrepo or clone git clone git://your.local.host.name/myrepo/

中局域网LAN中建立局域网可访问的类GitHub的服务器

标签:

原文地址:http://www.cnblogs.com/welhzh/p/4286471.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!