What is the exact meaning of Git Bash? -


git bash

i have been working git bash last 2 days. know basic operations such commit, push, pull, fetch, , merge. still don't know git bash itself is!

i've searched lot git bash, sites have seen focus on functionality of commands. still haven't found answer question. now, think, i'm in right place answer!

git bash shell where:

see "fix msysgit portable $home location":

on windows 64:

c:\windows\syswow64\cmd.exe /c ""c:\prog\git\1.7.1\bin\sh.exe" --login -i" 

this differs git-cmd.bat, provides git commands in plain dos command prompt.

a tool github windows (g4w) provides different shell git (including powershell one)


update april 2015:

note: git bash in msysgit/git windows 1.9.5 old one:

gnu bash, version 3.1.20(4)-release (i686-pc-msys) copyright (c) 2005 free software foundation, inc. 

but phasing out of msysgit (q4 2015) , new git windows (q2 2015), have git windows 2.3.5.
has more recent bash, based on 64bits msys2 project, independent rewrite of msys, based on modern cygwin (posix compatibility layer) , mingw-w64 aim of better interoperability native windows software. msys2 comes its own installer too.

the git bash (with new git windows):

gnu bash, version 4.3.33(3)-release (x86_64-pc-msys) copyright (c) 2013 free software foundation, inc. 

original answer (june 2013) more precisely, msygit wiki:

historically, git on windows officially supported using cygwin.
to make native windows version, project started, based on mingw fork.

to make milky 'soup' of project names more clear, this:

  • msysgit - name of project, build environment git windows, releases official binaries
  • mingw - minimalist development environment native microsoft windows applications.
    thin compile-time layer on microsoft runtime; mingw programs therefore real windows programs, no concept of unix-style paths or posix niceties such fork() call
  • msys - bourne shell command line interpreter system, used mingw (and others), forked in past cygwin
  • cygwin - linux environment, used in past build git windows, nowadays has no relation msysgit

so, 2 lines description "git bash" are:

"git bash" msys shell included in "git windows", , slimmed-down version of cygwin (an old version @ that), purpose provide enough of posix layer run bash.


reminder:

msysgit development environment compile git windows. complete, in sense need install msysgit, , can build git. without installing 3rd-party software.

msysgit not git windows; installer installs git -- , git.

see more in "difference between msysgit , cygwin + git?".


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -