Reminds me of git fetch-file.
“Fetch and sync individual files or globs from other Git repositories, with commit tracking and local-change protection”
https://github.com/andrewmcwattersandco/git-fetch-file