I am looking at this Download private BitBucket repository zip file using http authentication and trying to implement download of one file.
git archive --remote=ssh://[email protected]/steven/SH/downloads.git --format=zip --output="gz.zip" master
As well as
git archive --remote=ssh://[email protected]/steven/SH.git downloads/gz --output output.zip
I get - fatal: could not create archive file Permission denied