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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.