You could expose the retrieval of git commits over IPFS if you serve a git bare repo behind a simple mapping, yes. It's mentioned in specs.ipfs.tech/architecture/p…. I'm not sure that the git part buys much since it's content addressed anyway but you can!
♥ 3