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
- Create temporary access links that expire after a set time so you don't have to add collaborators permanently to your private repo
- Set up custom permissions for each person, letting them view or download specific files without giving full repository access
- Generate secure download tokens that work only for designated users, keeping your code private from everyone else
- Share read-only access to select branches or folders while keeping sensitive parts of your project completely hidden
- Monitor who accessed what and when through detailed logs, so you always know who has seen your private code