草庐IT

remotely

全部标签

git - 为什么我会收到此错误 : "remote end hung up unexpectedly"?

$gitpush-uoriginmasterCountingobjects:321523,done.Deltacompressionusingupto8threads.Compressingobjects:100%(85111/85111),done.error:RPCfailed;curl55SSL_write()returnedSYSCALL,errno=10053fatal:TheremoteendhungupunexpectedlyWritingobjects:100%(321523/321523),4.29GiB|17.11MiB/s,done.Total321523(del

git remote prune origin 即使删除了其上游远程分支,也不会删除本地分支

这对我来说是一个常见的用例,我克隆一个存储库,checkout一个分支,做一些代码更改,进行多次提交,然后当它稳定时,我推送到远程,最终分支被merge和删除,我只剩下一个本地分支,上游消失了。我一直在寻找一种删除所有此类分支的安全方法。从描述来看,似乎gitremotepruneorigin正是这样做的。但它似乎对我不起作用。看到以下行为,分支encrdb_init已从remote中删除,但gitremotepruneorigin命令似乎没有修剪它.我不确定为什么。$gitbranchbugfix/encrdb_init*master$$gitremotepruneorigin$$g

ruby-on-rails - Git pull 错误 : "fatal: Couldn' t find remote ref master"from Heroku

我在heroku上上传了我的应用程序。但我面临一些问题。问题是什么:致命的:'priroda'似乎不是git存储库?~/priroda$gitpullfatal:'priroda'doesnotappeartobeagitrepositoryfatal:Theremoteendhungupunexpectedly~/priroda$gitremote-vherokugit@heroku.com:secure-anchorage-3129.git(fetch)herokugit@heroku.com:secure-anchorage-3129.git(push)originpriroda

windows - Git:内部错误:refs/remotes/origin/master 不是有效的打包引用

我正尝试在Windows网络驱动器上克隆一个git存储库,但该过程失败了。它首先抛出一个internalerror:refs/remotes/origin/masterisnotavalidpackedreference,然后反复指出它无法取消链接索引文件。x:\code\source>gitclonex:\code\repos\project.gitCloninginto'project'...done.error:internalerror:refs/remotes/origin/masterisnotavalidpackedreference!fatal:update_reffa

git remote 似乎根本不起作用

我正在关注railstutorial.org,当我到达“gitpushherokumaster”部分时,出现以下错误:fatal:Notagitrepository(oranyoftheparentdirectories):.git所以我做了一些谷歌搜索,发现一个常见的故障排除技巧是尝试“gitremote-v”。问题是,每当我尝试这样做时,都会遇到与上述相同的错误。似乎无论我在“gitremote”之后键入什么都会导致该错误。我在这里做错了什么?!在撞到这堵砖墙之前,我一路顺风顺水。 最佳答案 您需要实际创建git存储库。简单地调

git - 如何使用 Git 跟踪给定分支的多个 Remote ?

情况是这样的:我有不止一个远程存储库-作为引用,假设一个是“alpha”存储库,我们最近建立了一个新的“beta”存储库,一些用户已经迁移到它。两个存储库都有一个“master”分支。我如何设置我的本地主机,使其尝试自动向alpha和beta存储库推送和pull,而无需手动指定远程我想每次都用?我应该详细说明我不想设置两个本地分支“master-alpha”和“master-beta”,我希望相同本地分支跟踪两个远程。 最佳答案 我认为用一个git命令是不可能的。另一种选择是定义一个git别名,它会从一个repogitpullmas

git - 如何使用USB驱动器作为 Remote

我在笔记本电脑和台式机上都有GitHub存储库的本地副本。Desktop领先于Laptop和远程GitHuborigin。我想将更改pull到笔记本电脑上,但不想推送到公共(public)origin。如何将USB内存棒/外部HDD设置为Remote? 最佳答案 将USB驱动器插入桌面,并假设它显示为J:初始化一个将充当Remote的裸仓库:gitinit--bareJ:\repo_namecd到本地仓库并:gitremoteaddusbJ:\repo_namegitcheckoutmastergitpushusbmastermas

git - 如何删除仍然在本地显示的 "remote"分支?

无意中创建了一个分支。我想删除它。事实上,我以为我上周删除了它,它没有出现在bitbucket的搜索中,所以我倾向于认为问题只是在我的本地repo中。为什么执行此操作后该分支仍显示在我的本地存储库中?$gitbranch-debc_193_157_154_order_creation_xsd_validation_and_refactored_codeerror:branch'ebc_193_157_154_order_creation_xsd_validation_and_refactored_code'notfound.$gitpushbitbucket:ebc_193_157_1

git - 多个 bitbucket 帐户的 ssh 配置 - 简单示例,但得到 'remote end hung up unexpectedly'

假设我的bitbucket用户名为“jon”,并且我在https://bitbucket.org/jon上有一些个人项目。假设我加入了一个开发团队,该团队有一个名为“devteam”的bitbucket帐户,可以在https://bitbucket.org/devteam找到然后假设我正在安装一台新机器。我生成了一个sshkey对,id_rsa和id_rsa.pub,它们位于~/.ssh中。然后我的开发团队负责人将我的id_rsa.pub公钥添加到bitbucket上的开发团队帐户。现在我可以从devteam帐户克隆项目并开始工作。接下来我想与我自己的jon帐户进行交互。但是,我无法将

git - Heroku Git - fatal error : The remote end hung up unexpectedly

MicrosoftWindows[Version6.1.7600]Copyright(c)2009MicrosoftCorporation.Allrightsreserved.E:\Windows\system32>herokuloginEnteryourHerokucredentials.Email:mymail@yahoo.comPassword(typingwillbehidden):Foundexistingpublickey:E:/Users/Stewie/.ssh/id_rsa.pubUploadingSSHpublickeyE:/Users/Stewie/.ssh/id_