gitlab和github 同樣很爽的一個東西linux
關於gitlab在CentOS下的安裝方法地址參考:git
https://github.com/gitlabhq/gitlab-recipes/tree/master/install/centosgithub
這個折騰了好一會vim
tortoiseGit下載的地址windows
http://code.google.com/p/tortoisegit/wiki/Download centos
msysGit 所在的網址:http://code.google.com/p/msysgit/gitlab
接下來的就是這個折騰了post
發現git@192.168.1.38:bazhusanguo/bazhusanguo.git 這種方式,各類的不行google
git.exe clone --progress -v "git@192.168.1.38:bazhusanguo/bazhusanguo.git" "D:\360Downloads\bazhusanguo" Cloning into 'D:\360Downloads\bazhusanguo'... 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)
若是有朋友知道,請告知spa
後面改爲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