I share the git repos between different machines using my own servers. All remote mirrors are synced over SSH using git-remote-crypt[2], which additionally encrypts all remotely stored files - including the metadata (e.g. paths and file names of the files) of the remote git repo itself.
On mobile I like to torture myself and enter the passwords manually.
I definitely wouldn't trust any SaaS password manager.
[1] https://www.passwordstore.org/ [2] https://spwhitton.name/tech/code/git-remote-gcrypt/