For example,
git gui&
;
Based on Antonio's answer I have figured out the following recipe:
cmd //c start //D "C:\Program Files\Git\bin" "wish.exe" "C:\Program Files\Git\libexec\git-core\git-gui"
It works, as can be tested by pressing Ctrl-D in the shell. The shell closes properly and git gui continues to work.
Drawback: this solution ignores the current directory and opens git gui in the C:\Program Files\Git\bin
directory, not in the current directory.
One may argue that git gui on Windows remembers recent repositories so it's only a click away. True, but the question is: how to get a detached git gui
in the current directory...
I have tried a few variants to fix the drawback, but nothing truly satisfying.
The ones below always ask what to open git gui
with. Choosing "C:\Program Files\Git\bin\wish.exe" in the file selector works but has to be done every time.
cmd //c start //D "E:\\escapedwindowsstyle\\path\\to\\my\\git\\repo\\" "C:\\Program Files\\Git\\bin\\wish.exe" "C:\\Program Files\\Git\\libexec\\git-core\\git-gui"
cmd //c start "C:\\Program Files\\Git\\bin\\wish.exe" "C:\\Program Files\\Git\\libexec\\git-core\\git-gui"
Can anyone understand what happens and/or improve on that ?