If you have a NAS you can run Gogs as a container for a git repo.

if you have a NAS you can just use a bare git directory as a remote

I do this, works exceptionally well. It also works via a USB key.