我正在尝试查找有关 msysgit sh.exe 命令的一些文档。
例如,我知道启动 git bash session 的 --login
标志,但我想知道其他可能性。
我浏览了互联网,但找不到列出所有可能参数的任何地方。
最佳答案
> .\sh.exe --help
GNU bash, version 3.1.0(1)-release-(i686-pc-msys)
Usage: ".../Git/bin/sh.exe" [GNU long option] [option] ...
".../Git/bin/sh.exe" [GNU long option] [option] script-file ...
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--protected
--rcfile
--restricted
--verbose
--version
--wordexp
Shell options:
-irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option
Type `".../Git/bin/sh.exe" -c "help set"' for more information about shell options.
Type `".../Git/bin/sh.exe" -c help' for more information about shell builtin commands.
Use the `bashbug' command to report bugs.
另见 GNU website , 和 bash’s manual .
关于git - msysgit sh.exe 参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13229642/