How To Launch Git Bash from DOS Command Line?

前端 未结 9 1694
北海茫月
北海茫月 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 09:04

    You can add git path to environment variables

    • For x86

    %SYSTEMDRIVE%\Program Files (x86)\Git\bin\

    • For x64

    %PROGRAMFILES%\Git\bin\

    Open cmd and write this command to open git bash

    sh --login
    

    OR

    bash --login
    

    You can see this GIF image for more details:

    https://media1.giphy.com/media/WSxbZkPFY490wk3abN/giphy.gif

提交回复
热议问题