Some functions of GIT bash installed by default are not available, such as zip. When executing zip and unzip commands under git bash, an error will be reported and the command cannot be found. Fortunately, we can install the commands we need. Take the zip command as an example, and the steps are as follows:
1. Open https://sourceforge.net/projects/gnuwin32/files/
2. Find zip and bzip2. Since zip depends on bzip2.dll, Download zip-3.0-bin.zip and bzip2-1.0.5-bin.zip. After decompression, copy zip.exe under bin directory of zip-3.0-bin and bzip2.dll under bin directory of bzip2-1.0.5-bin to & lt; Program folder>\ Git \ usr \ bin, such as mine:
3. Then enter zip — help and unzip — help under git bash, which can be used as follows:
Therefore, similar methods can be used for other commands
Reference: https://ranxing.wordpress.com/2016/12/13/add-zip-into-git-bash-on-windows/