首页 > 解决方案 > "An error occurred while trying to copy a file: The source file is corrupted."

问题描述

How can I solve this error during installation of git-bash on Windows?

I have downloaded git-bash and I want to install it but when it show me that error like the picture down below:

https://i.stack.imgur.com/kHnwb.jpg

An error occurred while trying to copy a file:  
The source file is corrupted.

标签: windowsgitinstallationgit-bash

解决方案


如果在完全重新启动后,相同的安装过程仍然失败,您可以选择:

我一般会补充:

set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
set GH=C:\path\to\git
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%PATH%

推荐阅读