How can I find out the command line options for git-bash.exe?

I found this commit from 2015 that introduced new command line options: https://github.com/git/git/commit/ac6b03cb4197311b055dc5f46ab10bf37c591ae6

Here is the list from the commit description:

--command=<command-line>::
    Executes `<command-line>` instead of the embedded string resource

--[no-]minimal-search-path::
    Ensures that only `/cmd/` is added to the `PATH` instead of
    `/mingw??/bin` and `/usr/bin/`, or not

--[no-]needs-console::
    Ensures that there is a Win32 console associated with the spawned
    process, or not

--[no-]hide::
    Hides the console window, or not

You can read the full information in the URL above.


Correct there isn't a list of command line options help for git-bash.exe. I spend some time looking for them myself and there isn't any proper documentation on it. It appears to be a wrapper for bin/sh.exe. If you really need to do more then I recommend looking at the help info for sh.exe instead.