Disable https clone option. Leave only SSH clone available


Is there a way to disable https clone option? I searched everywhere and I can’t find it. I’d like to leave only SSH clone option as available to clone the repository. Thanks in advance for your help.


Hi @mateusz12345 and welcome to the GitLab Community forum!

To specify the enabled Git access protocols, and restrict it to only using SSH, please refer to the documentation here:


Let us know if you have any problems or questions!

1 Like

Hi Greg,

Thank you for your help. I’ve already found this instruction in documentation. Unfortunately, I don’t know where to find this " Git access protocols" setting in my repository. Could you add some screenshots how to find it and change it?


These restrictions apply at the application level instead of per-project or repository. Disabling Git access protocols will apply to all projects hosted on an instance.

Are you using GitLab.com or GitLab self-managed/self-hosted? Git access protocol restrictions are not currently available to GitLab.com users.
These application-level settings are currently configurable for administrators of GItLab self-managed/self-hosted.

I’m using GitLab.com, so that’s why I can’t see this option. Thank you very much for your explanation Greg.