リモートリポジトリから1つのディレクトリを取得しようとしていますが、そのファイルを特定のハッシュから取得したいだけです。 HEADでgitアーカイブを使用してもOKですが、特定のハッシュで試してみると:リモートからの特定のハッシュからのgitアーカイブ
git archive -v --format tar --remote = ssh://....myrepo.git agithash afile> output.tgz
しかし、私は
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
は、だから私は、私はこのような別のアップロード・アーカイブを使用することができることを読んで取得しています:
gitのアーカイブ-v --formatタール - リモート= ssh:..... myrepo.git --exec = "/ usr/local/bin/git upload-archive" ahas h afile> output.tgz
それもうまくいかなかった。 BitBucketがそれをサポートしていないためだと思います。https://confluence.atlassian.com/bitbucketserverkb/git-upload-archive-archiver-died-with-error-779171761.html
これはもう一つの簡単な方法ですか?