How to add man and zip to "git bash" installation on Windows How to add man and zip to "git bash" installation on Windows windows windows

How to add man and zip to "git bash" installation on Windows


2016: The zip command can be installed from GoW (Gnu On Windows). man is not provided (too big).

It is to note, however, that if you only want to add the zip command from GoW, still the whole GoW system has to be downloaded and installed. Then you can delete the other commands from the bin directory, however make sure to keep the needed dlls in the directory.

Update 2021: tar/zip are by default installed on Windows 10.
7-zip based solutions are available below.


7-zip can be added to gitbash as follows:

  1. Install 7-zip on windows.
  2. add 7-zip folder (C:\Program Files\7-Zip) to PATH
    On gitbash exp: export PATH=$PATH:"C:\Program Files\7-Zip" (temporary)
    On Windows, adding PATH like image below (permanent)

enhanced picture with better blackening

  1. duplicate a copy of 7z.exe to be zip.exe
  2. reopen gitbash again. done!

This way, it works on my laptop.

If you skip step 3. you still can call zip command as 7z instead of zip

Conclusion: Gitbash is running base on windows Path, I think you can run any command that you have added to your Windows PATH.


Here's another, slightly different, set of instructions to install zip for git bash on windows:

  1. Navigate to this sourceforge page
  2. Download zip-3.0-bin.zip
  3. In the zipped file, in the bin folder, find the file zip.exe.
  4. Extract the file zip.exe to your mingw64 bin folder (for me: C:\Program Files\Git\mingw64\bin)
  5. Navigate to to this sourceforge page
  6. Download bzip2-1.0.5-bin.zip
  7. In the zipped file, in the bin folder, find the file bzip2.dll
  8. Extract bzip2.dll to your mingw64\bin folder (same folder as above: C:\Program Files\Git\mingw64\bin)