1) Note that Git itself is not at all concerned with how repositories are managed and how access to them is provided and controlled (separation of concerns).
2) Unless you want to create a simple CGI solution by hand, try one of server-side Git front-ends providing turn-key solutions for Git hosting...