Capturing Git Traffic
|Product version||Fiddler Everywhere 1.0.0 and above|
|3rd-party tools||GIT, GitHub|
|Supported OS||macOS, Linux, Windows|
I want to capture the traffic generated from the Git source control while making pull & push requests and cloning repositories. How to configure Git to go through the Fiddler Everywhere proxy?
Start your Git Bash terminal with administrative rights.
Configure Git (for HTTPS-accessed repositories) to use the Fiddler Everywhere proxy.
git config --global http.proxy http://127.0.0.1:8866
Disable the SSL/TLS verification by setting
git config --global http.sslVerify false
false can help you quickly setup your environment alongside a man-in-the-middle HTTPS proxy. However, its usage is insecure as it will disable the validation of all self-signed certificates. Alternatively, you could install the Fiddler root CA to the certificate chain and specify it with either
http.sslCAInfo <path-to-CA-file> // File containing the certificates to verify the peer when fetching or pushing over HTTPS. The `GIT_SSL_CAINFO` environment variable can override it. http.sslCAPath <path-to-folder-containing-CAs> // Path containing files with the CA certificates to verify the peer when fetching or pushing over HTTPS. Can be overridden by the `GIT_SSL_CAPATH` environment variable
Check the current Git proxy configuration through the following command:
git config --get-regexp http.*
Reset the Git proxy settings through the following commands:
git config --global --unset http.proxy git config --global --unset http.sslVerify