> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.14/onboard-cortex-xsoar/remote-repositories-in-cortex-xsoar/troubleshoot-a-remote-repository-configuration/troubleshoot-a-remote-repository-with-an-http-proxy.md).

# Troubleshoot a Remote Repository with an HTTP Proxy

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.

| Task                                                                        | Command                                                                                                                                                                                     | Notes                                                                                                                                                                                                                                                                                                                                                         |
| --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Show all configurations                                                     | **`git config --list --system`**                                                                                                                                                            | If you see the error **`fatal: unable to read config file '/etc/gitconfig': No such file or directory`**, this means there is no git system configuration file.                                                                                                                                                                                               |
| Verify if there is a proxy defined in the git system configuration          | **`git config --system --get-regexp "http.*"`**                                                                                                                                             |                                                                                                                                                                                                                                                                                                                                                               |
| Define a proxy and also create the git system configuration file, if needed | <p><strong><code>sudo git config --system http.proxy <http://my-proxy-ip></code></strong></p><p><strong><code>sudo git config --system https.proxy <http://my-proxy-ip></code></strong></p> |                                                                                                                                                                                                                                                                                                                                                               |
| Configure the proxy authentication method to Basic                          | <p><strong><code>git config --system https.proxyAuthMethod basic</code></strong></p><p><strong><code>git config --system http.proxyAuthMethod basic</code></strong></p>                     | If your proxy uses Basic authentication, you may need to run these commands to instruct git to use the Basic authentication method when connecting to the proxy.                                                                                                                                                                                              |
| Disable the Cortex XSOAR git                                                | **`sudo mv /usr/local/demisto/git /usr/local/demisto/git_copy`**.                                                                                                                           | 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                                                         | **`git version`**.                                                                                                                                                                          | The git version must be at least 2.21.0.                                                                                                                                                                                                                                                                                                                      |

{% hint style="info" %}

### Note

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`**
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.14/onboard-cortex-xsoar/remote-repositories-in-cortex-xsoar/troubleshoot-a-remote-repository-configuration/troubleshoot-a-remote-repository-with-an-http-proxy.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
