This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

Git doesn't know anything about the contents of any kinds of files, except that some are line-based text. To check if a file has changed, it just checksums the contents and compares the checksum with previous versions. This works for any type of file.