Git: Be very verbose about cloning
If you’re ever struggling to figure out why cloning a repository fails beyond the usual suspects, the following setup may be handy for you.
GIT_TRACE turns general tracing on,
GIT_TRACE_PACKET enables packet-level tracing for network operations,
GIT_CURL_VERBOSE is equivalent to doing
curl -v, and
-vvv is pretty self explanatory.
export GIT_TRACE=1 export GIT_TRACE_PACKET=1 export GIT_CURL_VERBOSE=1 export GIT_SSH_COMMAND="ssh -vvv" git clone <repository>