diff a file into a specific commit and HEAD

Asked

Viewed 365 times

2

How can I compare the difference to HEAD and the last commit that contains a specific file?

To find the last commit that contains the file read the information at git diff file Against its last change .
But when executing the command git diff HEAD 7de795700d64093afcbd79af03ea4fcfc3ec25b2 src/rodain_get_directions/nodes/retrieve_content.py in the terminal nothing is returned.

I based on the link below to make the diff: How do I diff the same file between two Different commits on the same branch?

  • Missed the --, nay? git diff HEAD 7de795700d64093afcbd79af03ea4fcfc3ec25b2 -- src/rodain_get_directions/nodes/retrieve_content.py

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.