还是不行,配置如下: [url "https://mirrors.ustc.edu.cn/git-for-windows/"] insteadOf = https://github.com/git-for-windows/ 运行结果如下: $ git-update-git-for-windows Git for Windows 2.40.0.windows.1 (64-bit) Update 2.41.0.windows.3 is available Download and install Git for Windows v2.41.0.windows.3 (killing one Git Bash) [N/y]? y curl: (56) Recv failure: Connection was aborted # # # # 还有其它经过验证的镜像源吗?
时间: 2024-04-18 07:32:24 浏览: 31
如果使用了`https://mirrors.ustc.edu.cn/git-for-windows/`镜像源仍然无法加速升级过程,你可以尝试使用其他经过验证的镜像源。以下是一些可用的镜像源:
1. 清华大学镜像源:https://mirrors.tuna.tsinghua.edu.cn/git-for-windows/
2. 中科大镜像源:https://mirrors.ustc.edu.cn/git-for-windows/
3. 阿里云镜像源:https://mirrors.aliyun.com/git-for-windows/
你可以按照之前的方法,在Git Bash中执行以下命令来更换更新源为其他镜像源之一:
```
git config --global url."https://镜像源地址/".insteadOf https://github.com/git-for-windows/
```
将 `镜像源地址` 替换为你选择的镜像源地址。
然后再次尝试运行升级命令:
```
git-update-git-for-windows
```
希望通过更换其他经过验证的镜像源能够加速升级过程。如果仍然遇到问题,请随时向我提问。
相关问题
[如何使用global]index-url = https://mirrors.ustc.edu.cn/pypi/web/simple
`global` 在 Python 中是一个关键字,不能作为变量名或函数名使用。不过,从你提供的信息来看,你想设置 PyPI 的镜像源为中科大镜像源,可以在你的 `pip.conf` 或 `pip.ini` 文件中添加以下内容:
```
[global]
index-url = https://mirrors.ustc.edu.cn/pypi/web/simple
```
这样,当你使用 `pip install` 安装 Python 包时,就会从中科大的镜像源下载,而不是官方源。
pip install -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple/
这是一个在终端中使用 pip 命令安装 requirements.txt 文件所列出的依赖的示例命令。其中 `-r` 参数用于指定要安装的依赖列表文件,`-i` 参数用于指定要使用的 PyPI 镜像源,这里使用的是中国科技大学的镜像源。
这个命令假设你已经在终端中进入了包含 requirements.txt 文件的目录。如果你在 Jupyter Notebook 中运行这个命令,应该在命令前面加上 `!` 符号,例如 `!pip install -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple/`。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)