Git bash手动添加gnu tools

当我们在windows上使用git bash的时候, 可能会遇到某些linux 的tools 无法使用, 比如执行zip的时候, 提示"command not found"错误.这是因为git bash实际上使用的是一个mingw的缩减版本.所以我们可以手动安装自己需要的命令.目前只是支持win32, win64还在规划中.


参考如下方式, 手动安装gnuwin32 tools:

1. Go to the following link

2. Find out whatever command you are missing
Here I need zip and bzip2 for zip command. Because zip command relies on bzip2.dll to run. Otherwise you will get error “error while loading shared libraries: ?: cannot open shared object file: No such file or directory”.

3. Unzip the downloaded files
Here I am downloading “” for “zip.exe” and “” for “bzip2.dll” in the bin folder. <unzipped file>/bin/<command>.exe

4. Copy the command exe file into git-bash folder
Here I am copying “zip.exe” and “bzip2.dll” to <Program folder>\Git\usr\bin.



Add zip into GIT Bash on Windows


About: kiah