Suppose some repository at some point has created a file test.txt
and committed it to the repository with some data. The file might not be present in the repository's initial commit.
Next, a lot of commits make changes to this file.
Now, I want to produce diff
output that shows the difference between the initial (first) version of the file test.txt
and the current (HEAD
).
How do I do this?
EDIT: Question changed to note that the file might not be present in initial commit.
test.txt
on it's initial commit to the repo?