How To Launch Git Bash from DOS Command Line?

前端 未结 9 1693
北海茫月
北海茫月 2020-12-07 08:21

I\'ve got what I\'m hoping is a simple question, but I haven\'t been able to find the answer yet. I would like to launch Git Bash from a DOS batch file. Here is what I tri

9条回答
  •  醉梦人生
    2020-12-07 08:48

    I'm not sure exactly what you mean by "full Git Bash environment", but I get the nice prompt if I do

    "C:\Program Files\Git\bin\sh.exe" --login
    

    In PowerShell

    & 'C:\Program Files\Git\bin\sh.exe' --login
    

    The --login switch makes the shell execute the login shell startup files.

提交回复
热议问题