Can I restrict a user from accessing my gitlab repo but giving read/write access

Can I give a user read/write access to my repo using some app like prose or netliy-cms (without netlify hosting) or some other way, but restrict from accessing my repo?