It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Download a single file from remote repo using stash

I want to download a single file from a remote repo. We access stash using https. Please suggest possible commands for this.

I tried "git archive" but it does not seem to be working with stash using https protocol.



3 answers

1 accepted

0 votes
Answer accepted

Hi Sumeet,

I don't know you specific use case, but stash also provides "raw links" to any file, e.g.

You can access files using standard https authentication.

A discussion about git archive and stash you can find here.

Hope this helps.


If I download using the above method, I get a file with html tags. I want a clean file as it is.


The answer is here as informed by Mirko.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Atlassian supported Jenkins integration for Bitbucket Server

We’ve been building a plugin to integrate Bitbucket Server and Jenkins CI, and I’m excited to announce that our alpha is ready to download and install. It lets you seamlessly configure a Jenkins job ...

514 views 0 10
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you