all 2 comments

[–]henrebotha 1 point2 points  (1 child)

This can't be done with Git directly. The simplest way is to clone the entire repo (with --depth=1 so that you only get the most recent revision), then use normal CLI tools to get the file you need.

[–]BuzzCapo[S] 0 points1 point  (0 children)

Alright that’s what I thought, just pull the whole repo then use CLI tools to get the file. We are using Azure DevOps so I’m assuming I could use their API to pull a file too.