Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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.

Thanks

Sumeet

3 answers

1 accepted

1 vote
Answer accepted

Hi Sumeet,

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

https://stash.domain.de/projects/PROJECT/REPO/PATH/TO/FILE/FILENAME.EXT?raw

You can access files using standard https authentication.

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

Hope this helps.

Hi,

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

Thanks

This should work:

wget --auth-no-challenge --http-user=USER --http-password=PASSWORD http://bitbucket/path_to_raw_file

 

--auth-no-challenge send Basic HTTP authentication information

--http-user=USER set http user to USER.

--http-password=PASS set http password to PASS.

The answer is here as informed by Mirko.

Suggest an answer

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

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

128 views 2 2
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