git archive from a specific hash from remote
问题 I am trying to get one directory from one remote repository but I only want to get that file from a specific hash. If I use git archive with HEAD everything is OK but when I try with a specific hash: git archive -v --format tar --remote=ssh://....myrepo.git agithash afile > output.tgz But I'm getting fatal: sent error to the client: git upload-archive: archiver died with error remote: fatal: no such ref: 9a9c309 remote: git upload-archive: archiver died with error So I've read that I could