How do I write a batch file which opens the GitBash shell and runs a command in the shell?

前端 未结 6 1141
南方客
南方客 2020-12-01 00:22

I\'m on Windows 7 trying to use a batch file to open the GitBash shell and make a git call. This is the contents of my batch file:

REM Open GitBash 
C:\\Wind         


        
6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-01 00:51

    "C:\Program Files (x86)\Git\bin\sh.exe" --login -i -c "git archive master | tar -x -C $0" "%~1"
    

提交回复
热议问题