我注册了自己并在Gitlab上创建了一个新的私人项目。之后,我在Windows 7 PC上安装了一个git客户端,然后按照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索引的本地目录,我提交给本地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 :(得分:0)
参考这个stackoverflow线程:
gitlab: git clone https with large repos fails
我尝试在我的Webmatrix项目中添加少量文件(我尝试的总大小不到1,3MB),在本地提交并推送到Gitlab,重复直到所有文件和文件夹进入项目。 通过这种方式,我设法在Gitlab上克隆我的项目。