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?
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 .
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.
Did you make sure you were in normal mode (hit esc ) then type a colon before your commands ( :wq )?
Coincidentally enough, Git comes with the Cygwin net release. You can use the gitweb interface.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With