2013-11-20 35 views
2

我註冊了自己,並在Gitlab上創建了一個新的私人項目。在那之後,我在我的Windows 7 PC上安裝的git客戶端,我跟着上Gitlab命令行指令來製作新的本地資源庫:WebMatrix 3,無法在GitLab上推送

git config --global user.name "myname" 
git config --global user.email "myemail" 

創建存儲庫:

mkdir myprojdir 
cd myprojdir 
git init 
touch README 
git add README 
git commit -m 'first commit' 
git remote add origin https://gitlab.com/myusername/myprojectname.git 

git push -u origin master 

現在,當我打開WebMatrix3,我打開空遠程源控制站點:

https://gitlab.com/myusername/myprojectname.git 

我我的文件複製到由混帳索引的本地目錄,我承諾給當地git的,最後我推到Gitlab。

此時WebMatrix中報告這個錯誤:

fatal: The remote end hung up unexpectedly 
fatal: The remote end hung up unexpectedly 
error: RPC failed; result=22, HTTP code = 411 
Everything up-to-date 
git error code 1. 

    in 

    GitSCCProvider.GitCommandLine.GitProcessRunInvoked(GitProcessTracker gitProcessTracker) 
    in 

    GitSCCProvider.GitCommandLine.<>c__DisplayClass1.<GitAsyncCommandLineExecute>b__0() 
    in 

    System.Threading.Tasks.Task`1.InnerInvoke() 
    in 

    System.Threading.Tasks.Task.Execute() 

回答

0

參照此計算器線程:

gitlab: git clone https with large repos fails

我試圖添加到我的WebMatrix的項目文件的少量(我試過小於1.3MB的總大小),在本地提交併推送到Gitlab,重複直到項目中的所有文件和文件夾。 通過這種方式,我設法在Gitlab上克隆我的項目。