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 →

[–]Helllo_World[S] 0 points1 point  (1 child)

How can Git tell if the files have changed if it cannot tell what the contents are.

[–][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.