Skip to content

Instantly share code, notes, and snippets.



Forked from evanwill/
Last active Mar 13, 2017
What would you like to do?
how to add more utilities to git bash for windows, wget, make
# Created by .ignore support plugin (
### Windows template
# Windows thumbnail cache files
# Folder config file
# Recycle Bin used on file shares
# Windows Installer files
# Windows shortcuts
### SublimeText template
# cache files for sublime text
# workspace files are user-specific
# project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using SublimeText
# *.sublime-project
# sftp configuration file
# Package control specific files
Package Control.last-run
Package Control.system-ca-bundle
Package Control.cache/
Package Control.merged-ca-bundle
Package Control.user-ca-bundle
# Sublime-github package stores a github token in this file

How to add more to Git Bash on Windows

Git for Windows is bundled with "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on). If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so you should rename the exe file to the standard name. Since bin is on the PATH, it will be automatically available to Git Bash.

How to add some programs:

  • Download the latest binary for windows from the programs website (they are available as a zip with documentation, or just an exe)
  • If you downloaded the zip, extract all (if windows built in zip utility gives an error, use 7-zip).
  • Move *.exe to C:\Program Files\Git\mingw64\bin\

Watch command

Other commands

  • Other linux/Unix commands can be added to Git Bash in the same manor.
  • Find the required command's .exe file from project source.
  • Place it in the C:\Program Files\Git\mingw64\bin directory
  • If you want the help/man pages as well then copy the contents to C:\Program Files\Git\mingw64\ merging the folders, but do NOT overwrite/replace any existing files.

And now you are golden. Happy Hunting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.