I set that up, once. It went poorly for me. Git behaves much better, for me, when used thoughtfully and manually.
What I now do instead, is work on certain projects on an SSH accessible host. This gives the same benefits of having my last state easily accesses, without causing noise in my development tools such as git.
This is terrific. More folks would be more excited if they realized how much less hassle Podman is than Docker.