If you're working with Git Bash on Windows and need to use the zip command, you might run into an issue where the command isn't available by default. To resolve this, you'll need to manually install the zip.exe executable and the bzip2.dll file, which the zip command relies on to run. This guide will walk you through the steps to get both of these files and add them to your Git Bash environment.
First, head over to the GNUWin32 project page, where you can download the necessary files.
From here, you need to download two components:
In the GNUWin32 repository, search for zip and bzip2 under the bin folders. These are the essential components:

Ex in Figure 1 I downloaded a bzip2 file and with the zip file you do the same
Make sure to grab the correct versions for your system.
Once you've downloaded the necessary files, you'll need to unzip them.
Now that you have the zip.exe and bzip2.dll files, you need to place them in your Git Bash environment.
bzip2.dll in
<unzipped file>/bin
.To confirm that zip has been correctly installed, open Git Bash and type:
zip --versionIf everything was done correctly, you'll see the version information for zip, indicating that it's ready to use.
Now you're all set! You can start using the zip command in your Git Bash environment to create compressed archives.
1. Go to the following linkhttps://sourceforge.net/projects/gnuwin32/files/
2. Here I need zip and bzip2 for the zip command. Because the zip command relies on bzip2.dll to run, so we need to get both
3. Unzip the downloaded files
4. I am copying “zip.exe” and “bzip2.dll” to C:\Program Files\Git\usr\bin.