There is an option of share link, if you click on that, a popup will be appeared on that you can give your friends username or his email to share the repository. This popup says something like
“Existing users are granted access to this repository immediately. New users will be sent an invitation.”
UPDATE: Looks like the interface is slightly changed. You can share a repo via Settings / Access management.