I am having limited success with using git to clone a repo, then checkout a specific file and folder recursively. I have a repo setup like this
Repo root
|
|-FolderA -scripts
|-FileA.yaml -script input
There is a large amount of storage used by other files in this repo for development but I only need the script folder and 1 input file. I am running this from a fresh clean Linux environment as a step of a process that only needs to download the folder/file above not the other GBs of data.
My goal is to reduce the amount of data transferred in this process so that I can get the files at the time of the hash that more often are not be part of the commit the tag/hash is on.
What's the best wat to do this in bash on the cli with git?