Checking the environment variables and also HTTP configuration options does not reveal something. Is there a way to do this?
With git 2.8 (March 2016), you can force
clone to use IPV4 or IPV6.
git pull, see below Git 2.16, Q1 2018)
-6switches for remote operations
Sometimes it is necessary to force IPv4-only or IPv6-only operation on networks where name lookups may return a non-routable address and stall remote operations.
Use IPv4 addresses only, ignoring IPv6 addresses.
Use IPv6 addresses only, ignoring IPv4 addresses.
Update Git 2.16 (Q1 2018): Contrary to the documentation, "
git pull -4/-6 other-args" did not ask the underlying "
git fetch" to go over IPv4/IPv6, which has been corrected.
--ipv6options to sub-fetches
Signed-off-by: Alex Riesen
The options indicate user intent for the whole fetch operation, and ignoring them in sub-fetches (i.e. "
--all" and recursive fetching of submodules) is quite unexpected when, for instance, it is intended to limit all of the communication to a specific transport protocol for some reason.
Answered By – VonC