I am trying to connect to github at school but port 443 is blocked.
The admin told me to use port 9418 instead which I believe is the default port for the git protocol.
But in git bash (windows) if i try to do git remote set-url origin git://github.com/me/myrepo.git
and do a push, it tells me I can't push to this URL, and to use https://github...
instead.
How can I configure git to use port 9418 ?
443
. from a security perspective, your school should allowhttps://
("secure", that is "encrypted", http) rather than most other ports (including http)git://
protocol is anonymous and can only be used for fetching, cloning, etc., i.e. downloads. You cannotgit push
to any remote via thegit://
protocol because of this. I add this b/c the accepted answer does not explain why this works this way.