Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Express Basics (2015) Getting Started with Express Install Express.js

Alex Flores
Alex Flores
7,864 Points

Is git.bash the same as windows cmd?

I'm doing the Express Basic learning module and I'm stuck at the very first step, cloning the repository. I have a few questions:

  • using windows, will I have to use both the git.bash and windows cmd?
  • How does the git.bash and windows cmd work together? I -

1 Answer

Steven Ventimiglia
Steven Ventimiglia
27,371 Points

Git Bash is basically a portable and condensed version of the Unix Bash shell. It was created to enable people using Git to also use the commands allowed on any Unix-based system such as Linux or OS X. Also, in your case, it allows a Windows user to create an SSH keypair through traditional means, without the need of something like PuTTY.

It's very different from the the Windows Command Prompt or Powershell, although they do share many similarities. This has lead to the most recent events:

"More importantly than bringing the shell over to Windows, developers will now be able to write their .sh Bash scripts on Windows, as well (or use Emacs to edit their code). Microsoft noted that this will work through a new Linux subsystem in Windows 10 that Microsoft worked on with Canonical."

"'The native availability of a full Ubuntu environment on Windows, without virtualization or emulation, is a milestone that defies convention and a gateway to fascinatingly unfamiliar territory,' Canonical founder Mark Shuttleworth said in a statement today. 'In our journey to bring free software to the widest possible audience, this is not a moment we could have predicted. Nevertheless we are delighted to stand behind Ubuntu for Windows, committed to addressing the needs of Windows developers exploring Linux in this amazing new way, and excited at the possibilities heralded by this unexpected turn of events.'"

Source: https://www.google.com/search?q=microsoft+announced+bash&ie=utf-8&oe=utf-8#q=microsoft+announces+bash