-1

I want to check if a certain file was part of a specified commit; if the source code at that time includes the above file. How may I achieve that?

Unknown developer
  • 5,414
  • 13
  • 52
  • 100

1 Answers1

1

git checkout <sha1 of commit> then check if file is there`

if you want to check how the file was changed in the commit then:

git diff <sha1 of commit before your commit> <sha1 of commit>

To get a full log of commits git log (you can add --oneline for brevity)

Michael
  • 4,538
  • 5
  • 31
  • 58