CentOS下搭建使用gitlab 和tortoiseGit使用

gitlab和github 一样很爽的一个东西

关于gitlab在CentOS下的安装方法地址参考:

https://github.com/gitlabhq/gitlab-recipes/tree/master/install/centos

这个折腾了好一会

tortoiseGit下载的地址

http://code.google.com/p/tortoisegit/wiki/Download 

msysGit 所在的网址:http://code.google.com/p/msysgit/

接下来的就是这个折腾了

发现git@192.168.1.38:bazhusanguo/bazhusanguo.git 这种方式,各种的不行

git.exe clone      --progress -v  "git@192.168.1.38:bazhusanguo/bazhusanguo.git" "D:360Downloadsazhusanguo"

Cloning into 'D:360Downloadsazhusanguo'...
Access denied.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


git did not exit cleanly (exit code 128) (21185 ms @ 2014/3/20 14:24:17)

如果有朋友知道,请告知

后面改成http://192.168.1.38/bazhusanguo/bazhusanguo.git

但是遇到一个问题是每次都要输入用户和密码

各种google和度娘

最后找到了在用户根目录新建一个

crimoon-008@CRIMOON-008-PC ~
$ pwd
/c/Users/crimoon-008
$vim _netrc
machine 192.168.1.38
login user
password pwd

这样就可以了

fatal: the remote end hung up unexpectedly

发生在push命令中,有可能是push的文件过大导致
解决方法:
windows:
在 .gitconfig 文件中加入
[http]
postBuffer = 524288000

linux:
git config http.postBuffer 524288000

原文地址:https://www.cnblogs.com/jackluo/p/3613693.html