Git platform notes

From wikinotes

Windows

git-bash

Overview

git-bash is an msys2 based environment that ships with enough tools to get productive with git on windows.
It includes some common unix tools like:

  • vim
  • find-utils
  • coreutils
  • linux-utils

It runs in the mintty terminal, which is customizable.

You can access other windows drives from the root path

cd /c/Users/foo

Adding tmux

You could compiles tmux, or install it to another msys2 environment and copy the files to git-bash's filesystem.

c:\tools\msys64\usr\bin\bash.exe -c "/usr/bin/pacman -Syyu && /usr/bin/pacman -S --noconfirm tmux"
c:\tools\msys64\usr\bin\bash.exe -c "cp /c/tools/msys64/usr/bin/tmux.exe /c/program\ files/git/usr/bin/"
c:\tools\msys64\usr\bin\bash.exe -c "cp /c/tools/msys64/usr/bin/msys-event_core-* /c/program\ files/git/usr/bin/"

Now git-bash has tmux!