I sense a lot of confusion about what git even is. From your question it sounds like you want to use it somehow in the game itself (that is, in the finished product that you ship to people).
That’s not what git is for and it will work poorly if at all.
Git is a tool for developers. It’s something you use while developing your game. With it you can make snapshots (“commits” in git terminology) of your project files as you work on them. And then it adds a lot of neat features on top of that. Features such as:
- You can always go back to any previous commit no matter how old
- You can easily find when any line code was written and by whom (and if you bothered to add meaningful comments to your commits - also why)
- Multiple people can work on the same files and easily synchronize their work (“merge” in git terminology) without losing anything
- You can back up all your commits to a remote server with a single click.
- You can see what you’ve changed since your last commit
- Etc.
Git is an awesome tool for software development and most professional software developers, including me, always use it even if they work solo. Keeping track of everything you’ve done is incredibly useful. And it especially shines in larger projects with multiple developers, where work without it would be practically impossible (or at least magnitudes more difficult).
However I haven’t heard of anyone shipping it as a part of a game. I can’t imagine it being useful on the end user’s device.