1

Consider this example repo:

git init .
echo a > a
git add a
git commit -m 'commit a'
echo edited >> a

The file a in HEAD has contents:

a

while the file a in the working tree has contents:

a 
edited

How do I cat the contents from HEAD without touching the a file in the working tree?

PSkocik
  • 55,062
  • 6
  • 86
  • 132

0 Answers0