Try gitosis. Everyone submits his or her public key to the administrator, and then configures accessible projects for everyone in the gitosis configuration file. Access permissions can be divided into read-only and read-write.
First of all, you can consider using a ready-made management system, such as gitlab.
Then, Git's ssh protocol is actually based on ssh file permissions. You can create separate users for each person on the server, and then add users who can access project A to group A, and then only authorize group A to access git Warehouse files.
You can try gitlab/gitolite and other git permission solutions~
Try gitosis. Everyone submits his or her public key to the administrator, and then configures accessible projects for everyone in the gitosis configuration file. Access permissions can be divided into read-only and read-write.
Install gitlab directly using a new system.
See: Installing gitlab
First of all, you can consider using a ready-made management system, such as gitlab.
Then, Git's ssh protocol is actually based on ssh file permissions. You can create separate users for each person on the server, and then add users who can access project A to group A, and then only authorize group A to access git Warehouse files.