The following commands enable you to troubleshoot issues that might occur when using a remote repository with an HTTP or HTTPS proxy. To use a remote repository with an HTTP or HTTPS proxy, the proxy must be defined in the git system configuration.
Show all configurations
If you see the error
Verify if there is a proxy defined in the git system configuration
Define a proxy and also create the git system configuration file, if needed
Disable the Cortex XSOAR git
After verifying that the proxy is defined in the git system configuration, if there are still issues with the remote repository, confirm which git is used by Cortex XSOAR. Cortex XSOAR provides its own git, but can also use the operating system git. To force Cortex XSOAR to work with the operating system git, you must disable the Cortex XSOAR git
Confirm git version
The git version must be at least 2.21.0.
If you no longer need a proxy for your remote repository, remove the proxy from the server configuration file.
sudo git config --system --unset http.proxy
sudo git config --system --unset https.proxy