`git push` - 没有输出,没有任何反应 [英] `git push` -- No output, nothing happens

查看:1314
本文介绍了`git push` - 没有输出,没有任何反应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  touch test 
git add test
git commit -mtest
git push -u原点大师

这有效。该文件已上传到存储库。

  rm test 
cp -R ../website ./website
git rm test $ b $ git add website /
git commit -mInitial
git push -u origin master

这并没有给出任何输出,并且似乎没有任何事情可以对存储库进行操作。测试文件仍存在于存储库中。

  $ git status 
#分支主
#通过1次提交,您的分支领先于'origin / master'。
$
没有提交(工作目录干净)






任何人都可以协助吗?




在客户端和服务器上重新创建了分支,但没有成功。它只适用于一个文件,但它不会将网站文件夹推送到服务器。



这是我能看到的唯一奇怪的事情; POST git-receive-pack(chunked)

解决方案

与BitBucket有关。另一个问题有同样的问题:挂在POST git-receive-pack (chunked)



解决方案是使用Git + SSH而不是HTTP。它似乎只影响超过几兆字节的文件的回购。


touch test
git add test
git commit -m "test"
git push -u origin master

This worked. The file was uploaded to the repository.

rm test
cp -R ../website ./website
git rm test
git add website/
git commit -m "Initial"
git push -u origin master

This did not give any output, and nothing seems to have bee done to the repository. The test file is still present in the repository.

$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)


Can anyone assist?


Recreated the branch on both client and server, to no succes. It works when there's just one file inside, but it will simply not push the website folder to the server.

This is the only strange thing I can see; POST git-receive-pack (chunked)

解决方案

Looks like this is something to do with BitBucket. Another question here had the same issue: Hanging at "POST git-receive-pack (chunked)"

The solution is to use Git+SSH rather than HTTP. It seems to only affect repos with files over a few megabytes.

这篇关于`git push` - 没有输出,没有任何反应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆