Git Bash Here (context menu)

I am completely new to git for Windows and I have just learnt you can open a Git Bash from the context menu in Windows.
In Explorer it looks like this:

However in Directory opus, when I right-click in the same folder there is no option to create a new git bash. If I right click in the same folder in Directory Opus it looks like this:

How can I get the "Git Bash Here" option to appear in the context menu in Directory Opus?

Make sure Preferences / Miscellaneous / Windows Integration / Hide Windows items on file context menus (shift overrides) is turned off.

If it was already off, check if you get those context menus when you right-click a folder in Notepad's File > Open dialog. if you don't, then they may be intentionally restricted to Explorer, which some programs do. You can sometimes tell them not to via their configurations.

You can also add your own menu items which do the same thing in Opus, if needed, but that would require working out the Git Bash commands that need to be run behind the scenes, which isn't something I'm familiar with.

Thanks for the feedback.

"Hide Windows items on file context menus (shift overrides)" was already off. And yes, the option is there in Notepad's File > Open dialog.

Seems this might be a little above my level of expertise so I think I will leave it. It's a shame, but I will manage without it I guess.

What did you do on Windows to get those context menus to appear in the first place? (i.e. did you install something, or change a setting?)

I don't know how to get Git Bash commands into the DOpus right-click menu, but I can do everything that is needed very easily using DOpus buttons. I have 'Git for Windows' 2.10.0 downloaded from GitHub.

  1. Suppose that D:\Projects\MyProject is where a particular Git repository is. Create a DOpus button with the two lines:

cd "D:\Projects\MyProject" "C:\Program Files\Git\git-bash.exe"Change the second line to "C:\Program Files\Git\git-CMD.exe" to use Bash in a DOS window.

  1. To use the GUI that comes with the download above, create a button with the two lines:

cd "D:\Projects\MyProject" "C:\Program Files\Git\cmd\git-GUI.exe" Change the second line to "C:\Program Files\Git\cmd\gitk.exe" if that tool is more convenient.

  1. To create buttons that perform the four operations 'Git Bash Here', 'Git GUI here', . . . , in any directory, change the first line of each button to:

cd {SourcePath}These buttons will open Git Bash and the other tools in the current source directory of the lister.


That seems to cover everything that the right-click items do. In fact it does more, because the Bash directory can be set either as the current directory, or as the directory of any particular repository.

Thanks for the answer and sorry for the very late reply.

I made a button like you suggested:

<?xml version="1.0"?>
<button backcol="none" display="both" label_pos="right" textcol="none">
	<label>Git Bash Here</label>
	<icon1>C:\Icons\Miscellaneous\gitbash.ico</icon1>
	<function type="normal">
		<instruction>cd {SourcePath}</instruction>
		<instruction>&quot;C:\Program Files\Git\git-bash.exe&quot;</instruction>
	</function>
</button>