1) In the case of pgit, the "remote" database is a local docker container
2) You can do more complex analyses faster and easier (you don't need to pipe the git outputs) since it's just SQL
but pgit is not meant to replace git.