Skip to content

Commit

Permalink
git服务器搭建(局域网)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiwsir committed Jun 23, 2014
1 parent 39792e4 commit 5ec6fc4
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions Git/git服务器搭建(局域网).md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#git服务器搭建(局域网)

##第一步:

在服务器上创建一个用户(最好的做法是一个项目组的一个项目,创建一个用户,这里以git项目组为例)

![](../Pictures/git001.jpeg)

##第二步:

切换用户,创建仓库

![](../Pictures/git002.jpeg)

![](../Pictures/git003.jpeg)

##第三步:

把项目组里所有人的公钥都收集(这里只是其中一个)

![](../Pictures/git004.jpeg)

##第四步:

把所有人的公钥都写入到.ssh/authorized_keys里。一行一个

![](../Pictures/git005.jpeg)

##第五步:

把用户设置为不可登录的shell(保证安全)

![](../Pictures/git006.jpeg)

![](../Pictures/git007.jpeg)

改为

![](../Pictures/git008.jpeg)

##第六步:

项目成员在自己的电脑里尝试获取仓库

![](../Pictures/git009.jpeg)

**到这里结束,**

服务器用的是CentOS6.5

成员用的是windows系统,装cywin

Binary file added Pictures/git001.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/git002.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/git003.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/git004.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/git005.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/git006.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/git007.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/git008.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pictures/git009.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5ec6fc4

Please sign in to comment.