Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cygwin or Git Bash command window? [closed]

I'm new to Git. I downloaded Git and installed on my Windows. I saw Git provides a Git Bash command window. I also have Cygwin installed on my machine. Both Git Bash and Cygwin provide Git command line utilities. So my question is: Which one is the preferred way to use Git command: Running Git commands in Git Bash or Cygwin?

like image 698
tonga Avatar asked Jan 27 '13 20:01

tonga


People also ask

How do I open Git bash in Cygwin?

An interactive login shell can be started with -i -l flags. If you are using another shell, please confirm the way to get Cygwin's /usr/bin and /usr/local/bin into PATH for your shell. Therefore, the full command to run Bash in Cygwin is C:\cygwin64\bin\bash.exe -i -l .

Is Cygwin same as Git bash?

The difference between Cygwin and git-bash is that Cygwin is bigger, more flexible, and more extendable, and more all-encompasing. git-bash is smaller, easier to install, but the native git-bash is not extendable, and so separate installations are required for extended capability.

How do I close a Git bash window?

Did you make sure you were in normal mode (hit esc ) then type a colon before your commands ( :wq )?

Does Git for Windows use Cygwin?

Coincidentally enough, Git comes with the Cygwin net release. You can use the gitweb interface.


1 Answers

git-bash is enough, unless you need more recent bash feature (since the bash from MingW used by msysgit is quite old)

See also "Difference between msysgit and Cygwin + git?".

For instance, GitHub for Windows would use msysgit, not git in Cygwin.

like image 123
VonC Avatar answered Oct 06 '22 12:10

VonC