有适用于 Windows 的 git,还有适用于 Windows SDK 的 git。两者都提供了 git-bash.exe shell,但是当从 SDK 执行 shell 时,它总是在自己的窗口中打开。我希望能够将它用作 Windows 终端中的选项卡。我可以更改设置来实现此目的吗?
最佳答案
我能够在 MSYS2 网站上找到这方面的说明(因为 Windows SDK 的 git 本质上包装了 MSYS2):https://www.msys2.org/docs/terminals/
基本上命令是
C:\path\to\gitsdk\msys2_shell.cmd -defterm -here -no-start -mingw64
关于git-for-windows - 如何在 Windows 终端中启动 git-for-windows SDK 的 git-bash?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70734721/