Well GitHub recommend that people use https as it works even if you are behind a firewall or proxy. They even offer SSH over port 443 [1] if you want to use SSH but are stuck behind such a firewall.
[1] https://docs.github.com/en/authentication/troubleshooting-ss...