Git archive remote end
I was trying to check out one file from Github. After doing this thread, I tried
git archive --format=tar --remote=ssh://git@github.com:user/project.git HEAD:README.md
I am getting the following error
fatal: The remote end hung up unexpectedly
Edit: I tried to get the file from raw, getting the 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 this using git commands.
+3
source to share
1 answer
From: https://help.github.com/articles/can-i-archive-a-repository/
Quote:
'' GitHub does not provide archiving.
If you want to consider a workaround, you can emulate the archives locally by cloning the entire repository to your local machine. This will make you responsible for your own backups. '
+2
source to share