Skip to content

Add 'Git bash here' to context menu *in* a folder #84

hickford opened this Issue Dec 14, 2012 · 6 comments

4 participants


Git for Windows adds a 'git bash here' item to the Windows Explorer context menu, when opened on a folder.

It would be really helpful to add the 'git bash here' item for context menus opened in a folder. I for one use this context menu much more often.

Example screenshot of the context menu where the item is missing

@hickford hickford referenced this issue in rpavlik/git-windows-mintty Dec 14, 2012

List 'Git bash here' in context menu in a folder #1


Basically, install.iss installs a shell extension to (typically) HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell . Would need to install a similar shell extension to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell. I say, similar, because would need to change the corresponding command subtly (replace %1 with %V).

MSysGit - the development behind Git for Windows member
hvoigt commented Dec 17, 2012

Please feel free to change what you feel is more correct and submit a pull request or send a patch to the list.

snaewe commented Dec 19, 2012

This doesn't work on XP, does it ?


Surely this works on exactly the same platforms as before since I've just added an extra item using the same old method. I don't know whether this includes Windows XP.

MSysGit - the development behind Git for Windows member

According to this comment on SO, doing it this way only works on Windows Vista and above (which is OK for me, this is just FYI).

@sschuberth sschuberth added a commit that referenced this issue Jan 17, 2013
@sschuberth sschuberth Installer: Add registry-based context menus also to directory backgro…

Do this for both "Git Bash Here" and "Git GUI Here" entries. Simplify the
code along the lines. Fixes issue #84.

Helped-by: Matt Hickford <>
Signed-off-by: Sebastian Schuberth <>
MSysGit - the development behind Git for Windows member

Doh, it seems the "Fixes issue #84" needs to go to the commit message's subject (not the body) to make GitHub close the issue automatically.

@sschuberth sschuberth closed this Jan 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.