It’s always frustrating to use Git because of some wall. I recently read a blog from manateelazycat, he suggests a way to use Git via HTTPS, just need to edit ~/.ssh/config and add the following config in it
Host github.com
Hostname ssh.github.com
Port 443
User git
Test it
❯ ssh -T git@github.com
Hi <USERNAME>! You've successfully authenticated, but GitHub does not provide shell access.