forked from qiwsir/ITArticles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.