WebMatrix 3,无法在GitLab上推送
我注册了自己,并在Gitlab上创建了一个新的私人项目。之后,我在Windows 7 PC上安装了git客户端,并按照Gitlab上的命令行说明创建了新的本地存储库:WebMatrix 3,无法在GitLab上推送,git,webmatrix,gitlab,Git,Webmatrix,Gitlab,我注册了自己,并在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 'firs
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
创建存储库:
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()
致命:远程端意外挂起
致命:远程端意外挂起
错误:RPC失败;结果=22,HTTP代码=411
一切都是最新的
git错误代码1。
在里面
GitSCCProvider.GitCommandLine.GitProcessRunCalled(GitProcessTracker GitProcessTracker)
在里面
GitSCCProvider.GitCommandLine.c__DisplayClass1.b__0()
在里面
System.Threading.Tasks.Task`1.InnerInvoke()
在里面
System.Threading.Tasks.Task.Execute()
引用此stackoverflow线程:
我试图一次向我的Webmatrix项目中添加少量文件(我尝试使用小于1,3MB的总大小),在本地提交并推送到Gitlab,重复操作,直到所有文件和文件夹都进入项目。
通过这种方式,我成功地在Gitlab上克隆了我的项目