You need an Azure-specific answer. Add a comment. Active Oldest Votes. Improve this answer. Shamrai Aleksander Shamrai Aleksander 8, 2 2 gold badges 10 10 silver badges 19 19 bronze badges.
Thank you, though! Could it literally be just because of the fact that my repo is in a "tfs" URL, instead of the kind of "repositories" URL as in your example? Like even though they are both technically Azure DevOps, they behave differently for things like this??
So the issue actually is with the URL I was using, which you clued me in on. And that worked! If you want to update your answer to specify the difference in URL, I'll mark it as the answer. Thank you!! Dan Hoeger Dan Hoeger 11 2 2 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast An oral history of Stack Overflow — told by its founding team.
Note: the example was not tested! By default git daemon disables remote archive with "fatal: remote error: access denied or repository not exported We ended up fetching from our local cgit server. It works, but it's not as fast as I'd like it to be and it still requires running unix2dos or similiar on Windows machines since we store files with Unix line endings in the Git repository.
FrerichRaabe Use -o fetched. For what it's worth, it doesn't look like this works on GitHub hosted repositories. See help. Show 2 more comments. Not in general but if you are using Github: For me wget to the raw url turned out to be the best and easiest way to download one particular file. Kalanos 3, 3 3 gold badges 30 30 silver badges 57 57 bronze badges.
Ankur Agarwal Ankur Agarwal 21k 34 34 gold badges silver badges bronze badges. This is the easiest solution, and works for any raw txt one could find. Works just fine for me. Did you put your url in quotes on the commandline? The solution is asked for Git, the answer endorses Github is git and is nowheere related to git. It's based on additional APIs offered by a prominent git solution provider! Show 1 more comment.
Kousha Kousha 1, 14 14 silver badges 18 18 bronze badges. Evan Carroll Mars Robertson Mars Robertson Apparently I haven't read the git docs well enough, or my glasses need updating ;- — Dennis. This doesn't seem to get the file from a remote repository though, like the OP needs. Or: git show HEAD:. Kind request for all downvoters - please explain and clarify what's not OK - we are here to learn and share : — Mars Robertson.
MichalStefanow: Mike Weller has it; specifically, this doesn't work on a remote repository. You need a local clone at the very least, even if you then have remotes set up on it. Steven Penny Steven Penny 1. To connect to raw. This works for public repositories only. For private repositories you need authentication. Willem van Ketwich Willem van Ketwich 4, 7 7 gold badges 47 47 silver badges 54 54 bronze badges. This does not work, github does not support git archive.
You explicitly set --remote to a github URL in your answer though ;- — Philipp. Thanks for the feedback. Have amended the answer accordingly. Richard Lalancette 2, 23 23 silver badges 29 29 bronze badges.
ATorras ATorras 3, 2 2 gold badges 28 28 silver badges 35 35 bronze badges. For single file, just use wget command. A while the file will put in your folder. For example for downloading modules from different repositories.. Here's a script:! Community Bot 1 1 1 silver badge. Shayki Abramczyk Shayki Abramczyk With help from Career Karma, you can find a training program that meets your needs and will set you up for a long-term, well-paid career in tech.
Find the right bootcamp for you. Find a top-rated training program. Get matched to top bootcamps today Select your interest:. First Name. Last Name. Get matched to top bootcamps today. Find Your Bootcamp Match.
Start your career switch today. Career Karma matches you with top tech bootcamps Get exclusive scholarships and prep courses. Please enter a valid phone number. What's Next? Want to explore tech careers? James Gallagher. Share This. Previous Article Git: Force Pull. Oct 12, Leave a Reply Cancel reply Your email address will not be published.
Apply to top tech training programs in one click.
0コメント