This task can be performed using GitShare
Turn Private Repositories into Revenue Stream
Best product for this task

What to expect from an ideal product
- GitShare lets you invite team members directly to private repositories without exposing your code to unauthorized users
- You can set different permission levels for each team member, controlling who can view, edit, or manage your private repositories
- The platform encrypts all repository data during transfer and storage, keeping your sensitive code protected from external threats
- Team members get secure access through authenticated accounts, eliminating the need to share passwords or create risky workarounds
- You can revoke access instantly when someone leaves your team, ensuring former members can't access your private code anymore