Git-archive远端挂断 [英] Git-archive remote end hung up

查看:70
本文介绍了Git-archive远端挂断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从Github检出单个文件.遵循这个我尝试过的线程

I was trying to checkout single file from Github. After following this thread I tried

git archive --format=tar --remote=ssh://git@github.com:user/project.git HEAD:README.md

我收到以下错误

fatal: The remote end hung up unexpectedly

我尝试通过从git ls-remote url获取文件来从原始文件中获取文件.然后用这个头我用wget得到了文件.但是我想知道如何使用git命令来做到这一点.

I tried getting file from raw by getting head from git ls-remote url. Then using this head I got the file using wget. But I would like to know how to do it using git commands.

推荐答案

答案来自: https://help.github.com/articles/can-i-archive-a-repository/

报价:

'' GitHub不提供存档.

如果要考虑解决方法,可以通过将存储库完全克隆到本地计算机来在本地模拟存档.这将使您对自己的备份负责. ''

这篇关于Git-archive远端挂断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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