I had a similar problem and I did it.
Step 1: Type "regedit" in the Start menu
Step 2: Launch Registry Editor
Step 3: Go to HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell
Step 4: Right-click on the “shell” and select “Create”> “Key”. name the key "Bash"

Step 5: Change the value and set its value to "open in Bash". This is the text that is displayed by clicking the right mouse button.


Step 6: Create a new key in Bash and name it "command". Set the value of this key for your git path - bash.exe.



Close the registry editor.
Now you can see this option in the right-click menu in Explorer
PS Git Bash selects the current directory by default.
EDIT . If you need a one-click approach, check out the Ozesh solution below
Shaswat Rungta Aug 28 '16 at 18:59 2016-08-28 18:59
source share