【发布时间】: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()
【问题讨论】: