0

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://git@bitbucket.org/steven/SH/downloads.git --format=zip --output="gz.zip" master

As well as

git archive --remote=ssh://git@bitbucket.org/steven/SH.git downloads/gz --output output.zip

I get - fatal: could not create archive file Permission denied

image of repo

  • Are you trying to download a file from the Downloads section, or are you trying to get an archive of the repository content? They are separate operations. – Jim Redmond Jan 11 '18 at 04:45
  • @JimRedmond Download a file. Is this possible or na? –  Jan 11 '18 at 04:46
  • Not through SSH. – Jim Redmond Jan 11 '18 at 04:47
  • @JimRedmond Uh okay. Thanks for that info. So what exactly did they do in that question I linked then if not download –  Jan 11 '18 at 04:49
  • @JimRedmond Same issue with github? –  Jan 11 '18 at 04:57
  • I'd have to check, but "could not create archive file" implies a local permissions issue. Github does not offer file uploads like Bitbucket does: https://github.com/blog/1302-goodbye-uploads – Jim Redmond Jan 11 '18 at 05:00
  • @JimRedmond It is sad day when they overlook such a simple, crucial feature. –  Jan 11 '18 at 05:03

1 Answers1

0

go to your bitbucket Repository overview page. Under the Overview heading, there will be a link. copy the link. open command prompt in your path. type hg clone (paste the link) -- Your default branch will be download to your path.

Akshay Kumar S
  • 333
  • 3
  • 12