If I have a file that I want to monitor for any changes (other than looking at the file date stamps etc).

How could I perform a SHA1 hash on its contents?

**I *think* this is what GIT does, so I just want to learn how to do it**