Mingw64 - Git Bash - Windows
Install Git with Mingw64 on Windows in order to have Git Bash Terminal on Windows.
Then you could add some .exe executables in Mingw64 usr/bin and use them like On Linux
Download and Install Git for Windows
After the installation, Mingw64_Git_path path will be one of these:
-
C:\Program Files\Git\: if installed with administrator administrator privilege -
C:\Users\$USER/AppData\Local\Prgrams\Git - Another way to find the path: Open the
Git Bash, On TaskBar right click on its icom, then right click onGit Bash - Click on
Propertiesand get yourGitfolder path
Add Tools
Download your tool(kubectl, helm, oc, ...) package here then unzip it.
Copy the content of each folder bin, lib, include and add thenm in the same folder of Mingw64_Git_path\usr
You could add the share folder content also.
In your Git Bash , you can add .bashrc like on Linux
Integrating the Git Bash Terminal with the WIndows Terminal
When I started using commands like kubectl exec -it ... , I got tty errors: Cannot allocate tty.
The solution was to use Git Bash directly through the Windows terminal instead of the default Mingw64 terminal.
- Open Windows Terminal
- Right click on Terminal then click on Parameters
- Add new profile
- Name:
Git Bash - Command Line:
<your-Mingw64_Git_path>\bin\bash.exe, ie:C:\Program Files\Git\bin\bash.exe - Starting Directory:
%USERPROFILE%OR StickUse Parent process directoryOR custom directory