How to change my project from private to public?

I just created an account, a group (or whatever), and a project. I uploaded my code to the project. What I want is to have a link that works (i.e., anyone can open) but when clicking this link it will only see the README file, and not have access to anything else (only someone that I add as member). However, after creating the project and all this, if I provide this link to someone that will try to access it, it finds the 404 code… If I try to change the code from private to public, there is no other option under the settings (only the private is available). Why so complicated?! This is supposed to be a simple thing!! Can someone please explain me how to do what I said, i.e., for anyone with this link to see the page of the project and read the message I have on the README file? Many thanks!

You cannot choose visibility of projects based on files. Either the entire project is public, or it’s private. Github, or any other git solution is no different.

If it’s private, you need to add them as a guest, reporter, developer, maintainer depending on what they are going to be doing.

See roles here: Roles and permissions | GitLab Docs

Thanks, I figured out the problem… The group was private, after making it public I was able to change the project