MobaXterm provides a wonderful bash terminal that can be used to execute git version control commands in the Windows machine. It also has the capability of installing additional packages, such as Git (together with the MobaXterm Bash, with can act like Gitbash)
How to install and configure Git in MobaXterm?
To install Git, use the following command from MobaXterm local bash terminal:
apt-get install git
Mobaxterm package manager would fetch all required dependencies, and install and configure Git for you.
Demo of git installation on MobaXterm
apt-get install git Trying to download file setup.xz Trying to download file setup.ini Trying to download file setup.xz Downloading /home/mobaxterm/.aptcyg/http%3a%2f%2fmirrors.kernel.org ..%2fsourceware%2fcygwin/setup.xz using Windows internet settings Updated setup.ini Found package git Installing git Downloading git-2.16.2-1.tar.xz... Downloading /home/mobaxterm/.aptcyg/http%3a%2f%2fmirrors.kernel.org ..%2fsourceware%2fcygwin/release/git/git-2.16.2-1.tar.xz .. using Windows internet settings Unpacking git-2.16.2-1.tar.xz... Extracting dependencies for usr/bin/git-receive-pack.exe... Extracting dependencies for usr/bin/git-shell.exe... Extracting dependencies for usr/bin/git-upload-archive.exe... Extracting dependencies for usr/bin/git-upload-pack.exe... Extracting dependencies for usr/bin/git.exe... ... ... ... ... Package zlib0 is already included, skipping Package git installed. Rebasing new libraries Found package rebase Installing rebase Downloading rebase-4.4.4-1.tar.xz... Downloading /home/mobaxterm/.aptcyg/http%3a%2f%2fmirrors.kernel.org%2fsourceware ..%2fcygwin/release/rebase/rebase-4.4.4-1.tar.xz using Windows internet settings Unpacking rebase-4.4.4-1.tar.xz... Extracting dependencies for usr/bin/rebase.exe... Extracting dependencies for usr/bin/peflags.exe... Package rebase requires the following packages, installing coreutils grep gzip sed Found package coreutils Package coreutils is already included, skipping Package grep is already installed, skipping Found package gzip Package gzip is already included, skipping Found package sed Package sed is already included, skipping Package rebase installed.
Now, let us test our fresh git installation!
git init Initialized empty Git repository in /home/mobaxterm/repo/.git/
You did it!
Notes: Git is not the same as gitbash. Gitbash is another client tool, like MobaXterm which provides git and a bash terminal.
You can find more MobaXterm Plugins here: https://mobaxterm.mobatek.net/plugins.html