Software⏱️ 2 min read📅 2026-05-31

How to Fix: Git fatal: protocol 'https' is not supported

Replace '.' with your actual GitHub username to fix the 'https' protocol not supported error when cloning a repository.

Quick Answer: Use the correct GitHub username, e.g., git clone https://github.com/your-username/Spoon-Knife.git

The 'Git fatal: protocol 'https' is not supported' error occurs when Git is unable to connect to a repository hosted over HTTPS due to an issue with the system's DNS settings or SSH configuration.

🛑 Root Causes of the Error

  • Incorrect DNS settings on the system.
  • A mismatch between the SSH keys used to authenticate with GitHub and those present on the local machine.

🔧 Proven Troubleshooting Steps

Method 1: Update DNS Settings

  1. Step 1: Check the system's DNS settings and update them to use a valid DNS resolver.

Method 2: Configure SSH Keys

  1. Step 1: Generate a new SSH key pair using the command 'ssh-keygen -t rsa -b 4096' and add the public key to your GitHub account.

💡 Conclusion

By following these steps, you should be able to resolve the 'Git fatal: protocol 'https' is not supported' error and successfully clone repositories from GitHub.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions