How To Launch Git Bash from DOS Command Line?

前端 未结 9 1692
北海茫月
北海茫月 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:49

    https://stackoverflow.com/a/33368029/15789

    I have posted an answer here.

    Open a Windows command window, and execute this script. If there is a change in your working directory, it will open a bash terminal in your working directory, and display the current git status. It keeps the bash window open, by calling exec bash.

    If you have multiple projects you may create copies of this script with different project folder, and call it from a main batch script.

提交回复
热议问题