无法将新的git存储库推送到github [英] Can't push new git repository to github

查看:638
本文介绍了无法将新的git存储库推送到github的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在研究一个本地的git仓库,一切都运行良好。今天是共享代码的时候了,我创建了一个github仓库,但我无法推动它。我尝试了所有可以找到的压缩和修剪方法。这是以前发生过的,我唯一的解决办法是创建一个新的回购协议,并将所有内容移动并重新启动git。

 
Tim $ git remote add origin git @ github。 com:tbbooher / cba_fitwit.git
Tim $ git push -u origin master
计数对象:7964,完成。
使用多达2个线程的增量压缩。
压缩对象:100%(2915/2915),完成。
从远程主机读取github.com:由同级重置连接
致命:远程终端意外挂起
错误:包对象死于信号13
错误:包对象死于奇怪的错误
错误:未能将某些参考文献推送到'git@github.com:tbbooher / cba_fitwit.git'

在同一台机器(MacBook Pro)上,我可以用另外四个回购机推拉,但我仍然怀疑有些ssh欺骗。压缩发生得非常快,然后一切都放慢了速度,然后爬到大约11%,然后失败。



<$ p $写作对象:10%(865/7964),2.37 MiB | 203 KiB / s


解决方案

这是我的路由器的问题。我去了一个新的位置,一切都推进得很好,现在我很好奇如何纠正我的路由器。



有趣的是,一旦我做了初始推,路由器可以处理它。


I've been working on a local git repository and everything has been working well. Today it was time to share the code, and I created a github repository, but I can't push to it. I tried all the compression and pruning methods I could find. This has happened before and my only solution was to create a new repo and move everything over and git init again. Since this has happened for a second time, I would really like to run this down.

 Tim$ git remote add origin git@github.com:tbbooher/cba_fitwit.git
 Tim$ git push -u origin master
Counting objects: 7964, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2915/2915), done.
Read from remote host github.com: Connection reset by peer
fatal: The remote end hung up unexpectedly
error: pack-objects died of signal 13
error: pack-objects died with strange error
error: failed to push some refs to 'git@github.com:tbbooher/cba_fitwit.git'

On the same machine (MacBook Pro), I'm able to push and pull with four other repos, but I still suspect some ssh trickery. Compressing happens very quickly, then everything slows way down at this point, and creeps along to about 11% and then fails as above.

Writing objects:  10% (865/7964), 2.37 MiB | 203 KiB/s   

解决方案

This is an issue with my router. I went to a new location and everything pushes just fine, now I am curious how to correct my router.

It is interesting to note, that once I did the initial push, the router can handle it just fine.

这篇关于无法将新的git存储库推送到github的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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