title: How to start MingW Console (GitBash) from Command Line on Windows?
body: <p>I'm trying to automate my work environment set up using a batch file. I'm stuck at a point where I am not able to start the MingW64 Console from command line.</p>
  
  <p><code>start "" "%ProgramFiles%\Git\bin\sh.exe" --login</code> works fine but it seems to open a different shell window than that I am looking for. I'll explain this with pictures.</p>
  
  <p>What it opens is a default cmd style window with bash integrated. This window isn't even resizeable<br>
  <a href="https://i.stack.imgur.com/1Fx6t.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1Fx6t.png" alt="enter image description here"></a></p>
  
  <p>What I want is<br>
  <a href="https://i.stack.imgur.com/O6xtj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/O6xtj.png" alt="enter image description here"></a></p>
  
  <p>I was trying to use the command <code>start "" "%ProgramFiles%\Git\git-bash.exe" --login -i -c /bin/bash</code> but it seems to quickly close the shell after opening it. If I execute the same file from explorer, the shell doesn't close automatically.</p>
  
  <p>Here is my full batch file for reference</p>
  
  <pre><code>@echo on
  
  REM start PHP and MYSQL
  start "" mysql_server\UniServerZ\UniController.exe start_both
  
  REM Open PhpMyAdmin
  start "" http://localhost/us_opt1/
  
  REM Open Folders
  start "" %SystemRoot%\explorer.exe "E:\work\"
  
  REM Open Git Bash Instance
  :: in order to open the shell in that path
  cd E:\work\
  :: start "" "%ProgramFiles%\Git\bin\sh.exe" --login
  start "" "%ProgramFiles%\Git\git-bash.exe" --login -i -c /bin/bash
  
  REM start sublime text
  start "" "E:\Sublime Text Build 3083 x64\sublime_text.exe"
  </code></pre>