Given an Azure Repos git repo/file url, is it possible to read a single file located in the git repo straight into memory without having to pull the whole repo? Specifically using the Python git
library.
Asked
Active
Viewed 27 times
0

Jayjay Jay
- 57
- 1
- 11
-
Yes, you can download a specific file from this link: `https://raw.githubusercontent.com/[YOUR_USERNAME]/[YOUR_REPO_NAME]/master/[YOUR_FILENAME]` – Feb 18 '22 at 11:53
-
Interesting, so this if I do a Python `requests.get` (with the correct credentials) to githubusercontent.com I should be able to download the file? I need this for Azure Repos – Jayjay Jay Feb 18 '22 at 12:51
-
It works in Github for public repos. Haven't tries for private repos – Feb 18 '22 at 13:25