我只有一个分支.几个月来我一直在用
git push origin master
Run Code Online (Sandbox Code Playgroud)
提交到我的本地存储库.昨晚我对我的本地存储库进行了一些小的更改,并试图使用相同的命令,我得到了这个错误:
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
Run Code Online (Sandbox Code Playgroud)
我用谷歌搜索并发现了这个问题和这个问题,但这些问题的答案都没有解决我的问题.
大多数答案都表明头部脱落的问题.但我不认为我的头是分离的.我也不认为我在错误的分支上(因为我只有一个分支......)
我做了一些实验来弄清楚什么是错的,这是我得到的结果:
(1)首先是我的git status输出
Run Code Online (Sandbox Code Playgroud)# On branch master # Untracked files: # (use "git add <file>..." to include in what will be committed) # # egal.aux # egal.blg # egal.out # egal.pdf # egalcar.aux # egalcar.blg # egalcar.pdf nothing added to …
我有一个有趣的问题.我有一个关于bitbucket的宠物项目,到目前为止,我能够从两个不同的网络(家庭和办公室)拉动和推动.需要一段时间才能正确设置配置,但我已经通过一些尝试和错误方法来解决它.现在问题是我在办公室里创建了一个分支(在代理后面),我不能用--all参数将它推送到bitbucket.我正进入(状态:
RPC失败; result = 22,HTTP代码= 0
这是git bash(已修改):
user@machine /c/dev/data/personal/projectname (master)
$ git push --all --dry-run
Password for 'https://username@bitbucket.org':
To https://username@bitbucket.org/username/projectname
* [new branch] ivymigration -> ivymigration
user@machine /c/dev/data/personal/projectname (master)
$ git push --all
Password for 'https://username@bitbucket.org':
Counting objects: 194, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (112/112), done.
Writing objects: 100% (116/116), 58.37 KiB, done.
Total 116 (delta 81), reused 0 (delta 0)
efrror: RPC failed; result=22, HTTP code = 0
atal: The remote end …Run Code Online (Sandbox Code Playgroud)