# How Do I Set Git_ssl_no_verify for Specific Repos Only?

Setting `GIT_SSL_NO_VERIFY` to bypass SSL verification in Git is a way to avoid SSL certificate validation issues, but it's generally not recommended for production environments due to security risks. However, if you need to set this configuration for specific repositories only, you can do so by configuring Git settings on a per-repository basis rather than globally.

Here’s how you can set `GIT_SSL_NO_VERIFY` for specific repositories:

### 1. **Using Git Configuration**

Git allows you to set configurations at different levels: system, global, and repository. You can disable SSL verification for a specific repository by modifying its configuration.

### **Step-by-Step Instructions**

1. **Navigate to the Repository Directory**
    
    Open a terminal or command prompt and change to the directory of the repository for which you want to disable SSL verification.
    
    ```bash
    cd /path/to/your/repository
    ```
    
2. **Set SSL Verification to False**
    
    Use the Git command to disable SSL verification for the current repository only. This setting will override global or system settings for this repository.
    
    ```bash
    git config http.sslVerify false
    ```
    
    This command updates the repository’s `.git/config` file to include the `http.sslVerify` setting set to `false`.
    
3. **Verify Configuration**
    
    To ensure the configuration has been applied correctly, you can check the current Git settings for the repository.
    
    ```bash
    git config --get http.sslVerify
    ```
    
    It should return `false` if the configuration was applied successfully.
    

### 2. **Using Environment Variables Temporarily**

If you only need to disable SSL verification temporarily for a specific Git command, you can set the environment variable `GIT_SSL_NO_VERIFY` just for that command. This method does not change repository settings but only affects the current command.

### **Example Command**

```bash
GIT_SSL_NO_VERIFY=true git clone <https://example.com/repository.git>
```

### 3. **Using `.gitconfig` for Repository-Specific Configuration**

In addition to using `git config` commands, you can manually edit the `.git/config` file inside the repository to set `http.sslVerify` to `false`.

### **Edit `.git/config` Directly**

1. Open the `.git/config` file in the root of your repository using a text editor.
2. Add or update the `[http]` section to include `sslVerify` set to `false`.
    
    ```
    [http]
        sslVerify = false
    ```
    
3. Save the file.

### **Security Considerations**

- **Security Risks**: Disabling SSL verification makes the connection vulnerable to man-in-the-middle (MITM) attacks. Always consider the security implications before making these changes.
- **Use in Production**: It’s best to address the root cause of SSL issues (e.g., by using valid certificates) rather than bypassing SSL verification.

### **Summary**

To disable SSL verification for specific Git repositories, use the `git config http.sslVerify false` command within the repository directory. This sets the configuration locally for that repository only. Alternatively, you can use the `GIT_SSL_NO_VERIFY` environment variable for individual Git commands or manually edit the `.git/config` file. Always be aware of the security implications of disabling SSL verification.