Last active
December 20, 2015 05:09
-
-
Save zilongshanren/6076562 to your computer and use it in GitHub Desktop.
CentOS安装git服务器
This file contains hidden or 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
教程:http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way/ | |
http://www.cnblogs.com/ahauzyy/archive/2013/04/08/3043384.html | |
http://blog.haohtml.com/archives/12658 | |
http://blog.csdn.net/sheismylife/article/details/7204345 | |
错误1 : | |
PTY allocation request failed on channel 0 | |
ERROR:gitosis.serve.main:Need SSH_ORIGINAL_COMMAND in environment. | |
Connection to 192.168.1.211 closed. | |
解决办法:运行ssh-add -D | |
然后再运行。 | |
错误2: | |
一旦运行ssh-add -D之后,你就没有权限去写gitosis-admin.git和你我肯定义的git仓库了。 | |
这时候需要ssh-add id_rsa,添加进来。解决办法,在虚拟机里面去远程登录,主机用来checkou代码吧。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment