Cloning a Single File from a Git Repository 21 September 2024 history edit Git git init git remote add origin <remote-uri> git sparse-checkout set 1 git sparse-checkout add <file-path> git fetch origin main 2 git checkout main This is a simpler sparse initialisation, but includes more files by default. ↩ This will, still, download the complete repo history. ↩ Task Creation Revision