Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
My ConEmu / Cmder git bash task config
  1. Open Conemu

  2. Open Settings -> Tasks or go to new tab button -> Setup tasks.

  3. Click + to add a new task

  4. Enter the name as Git Bash or whatever you like

  5. Task parameters:

     /icon "C:\Program Files (x86)\Git\etc\git.ico" /dir "C:\_git"
  6. Command:

     "C:\Program Files (x86)\Git\bin\sh.exe" --login -i 

If you want to force your $HOME directory to be on local HD not network drive, you can do this as the command instead:

    "set PATH=C:\Users\Ndecarteret;%PATH%" & "set HOME=C:\Users\Ndecarteret" & "C:\Program Files (x86)\Git\bin\sh.exe" --login -i 
Copy link

WesleyBlancoYuan commented Nov 16, 2017

I just use the command in default "git-bash.exe" shortcut in Start Menu:

C:\some_path\git-bash.exe -new_console --cd-to-home

Copy link

madasebrof commented May 16, 2018

For right-click open in a directory with the latest version of git bash (note double set of quotes)


""C:\Program Files\Git\bin\sh.exe" -l -new_console:d:%CMDER_START%"

Copy link

moussaouifawzi commented May 29, 2019

For version of ConEmu 190526 i use:

  • Add New Console
  • Select "Bach"
  • {Git:Bash}

Copy link

pyxelr commented Aug 22, 2021

In my current ConEmu 210816, I have used:

  1. Settings > Startup > Tasks > +
  2. Name: Bash::Git
  3. Task parameters: /icon "C:\Program Files\Git\mingw64\share\git\git-for-windows.ico"
  4. Command: "C:\Program Files\Git\bin\sh.exe" --login -i

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment