bitbucket のプライベートリポジトリからデータをzip形式でダウンロードする方法
bitbucket のプライベートリポジトリからデータをzip形式でダウンロードする方法
~/.ssh/config に接続情報をかいてから
% vim ~/.ssh/config Host bitbucket.org StrictHostKeyChecking no IdentityFile ~/.ssh/your_key
次のコマンドを実行する。
注意点としては、ドメインの直後は/
であること。
( bitbucket のレポジトリトップページからコピペすると、ドメイン直後が:
になっており、こちらだとエラーになる)
% git archive --remote=ssh://git@bitbucket.org/your_bitbucket_username/your_repository.git \ --format=zip --output="name_of_your_desired_zip_file.zip" \ master
参考