I can see list of files using below command
git ls-files --cache
Wondering if it's possible to read the content of the listed file?
I can see list of files using below command
git ls-files --cache
Wondering if it's possible to read the content of the listed file?
On
You could use checkout-index. This command copies a file from the git cache (index) into the worktree.
Normally it overrides the working copy, but with the parameter --temp you could create a copy of your file.
git checkout-index --temp -- myfile.ext
Use
git cat-fileorgit show. For example