【问题标题】:WebMatrix 3, cannot push on GitLabWebMatrix 3,无法推送 GitLab
【发布时间】:2013-12-04 20:36:01
【问题描述】:

我注册了自己并在 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()

【问题讨论】:

    标签: git webmatrix gitlab


    【解决方案1】:

    参考这个stackoverflow线程:

    gitlab: git clone https with large repos fails

    我尝试一次向我的 Webmatrix 项目添加少量文件(我尝试总大小小于 1.3MB),在本地提交并推送到 Gitlab,重复直到所有文件和文件夹进入项目. 通过这种方式,我设法在 Gitlab 上克隆了我的项目。

    【讨论】:

      猜你喜欢
      • 2018-03-10
      • 1970-01-01
      • 2015-12-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多