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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If I download using the above method, I get a file with html tags. I want a clean file as it is.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.
Start Learning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.