Too Long; Didn't Read
Git is something like a special filesystem that stores file with the same content only once. When you store a file in the Git repo, it will calculate the SHA1 hash of the file, and store it in the objects folder. This hash-based file storage which is the essence of the system is used by many other decentralized systems. IPFS or Swarm also uses this hash-based representation.