Allan Xu
Allan Xu

Reputation: 9298

How can I install the bash for windows that comes with Git without installing Git?

I need to install the bash shell that comes with Git without the need to install git.

I like to learn the bash outside the scope Git.

I guess the Git Bash somehow related Cygwin, but it is not the exact Cygwin.

I understand that Git and the "Mysterious Bash" don't have a tight dependency on each other.

How can I install the bash for windows that comes with Git without installing Git?

Can I install it independently and integrate git to my separate installation?

Upvotes: 1

Views: 1700

Answers (2)

bk2204
bk2204

Reputation: 76459

The environment that Git for Windows is bundled with is a variant of MSYS2. It is indeed based off Cygwin, and you can install it independently if you like, but it does not offer a Git package. Cygwin is also available, and it does offer a Git package.

If your interest is in learning how to use a Unix-like command-line environment, then you are probably better off installing the Windows Subsystem for Linux. Ubuntu is a common distribution, as is Debian, and those provide a more realistic Unix environment. You can also install Git using sudo apt-get install git if you like.

Upvotes: 2

I A
I A

Reputation: 81

First of all, why would you want to install Git Bash without Git? And then install git separately??

If you just want to use the Linux Bash Shell (or similar), then follow the tutorial below:

How to Install Linux Bash Shell on Windows 10

Otherwise I think Git Bash and Git can only be installed together on Windows, unless they have changed the installation process.

Upvotes: 0

Related Questions