Clone Github repo using https
Opened this issue · 6 comments
Some large corporations may set up their fancy corporate firewall to block the git
protocol, in extreme instances they may even block ssh
generally with the exception of a limited set of provides.
While engineers working for these companies may think such policies are outdated and fail to consider modern development practices, it is what it is.
Fortunately https
is usually unblocked in such cases and has been since some time in the 1990s (or early 2000s at the latest).
To assist the engineers working behind such corporate firewalls, it would be handy to configure the default checkout to use https
if a repository is not specified.
- Check if
git://develop.git.wordpress.org/
checkout fails - If failed, checkout
https://github.com/wordpress/wordpress-develop
@peterwilsoncc Have you tried:
core-dev:
mirror: https://github.com/WordPress/wordpress-develop.git
I haven't tested the mirror option so it might not work!
@BronsonQuick In this hypothetical situation, yeah setting a custom repo works but I am wondering if we should be polite.
I'm not sure how to setup my network to replicate this. Do you reckon this is something you could have a crack at @peterwilsoncc?
@peterwilsoncc If this is port-based blocking, you could also consider changing your git config to use port 443.
I just realised this is specifically for git.wordpress.org 🤦♂ Never mind!