If you need to get only one file from git without cloning the whole project you can use the next commands:
git clone --no-checkout
It will clone repo metadate, but not the data.
git checkout origin/ -- {FILE_PATH}
As said above - just clone the necessary File.