You just need git, ssh and pass (https://www.passwordstore.org/), see https://fr.jeffprod.com/blog/2019/gerez-vos-mots-de-passe-av... (french)
Or https://github.com/gopasspw/gopass if you want something passwordstore compatible but with additional team features.