git-for-windows - 如何在 Windows 终端中启动 git-for-windows SDK 的 git-bash?

标签 git-for-windows

有适用于 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/

相关文章:

Git 凭据管理器因浏览器不受支持错误而失败

git - 为什么我的右键框里没有 "Git Init Here"这个选项?

Git for Windows(64 位)中的 Maven classworlds.launcher.Launcher 错误

没有 "Credential Manager"的 Windows 静默安装的 Git

git - 如何在保留旧设置的同时为 Windows 更新 Git 客户端?

git - 尝试切换分支时在 Windows 中获取 "error cannot stat"消息

在 Git for Windows 控制台中使用时,java.lang.System.console() 返回 null

windows - 在 Git for windows "git bash"中,如何使用 cmd 和 Windows 资源管理器使用的 Windows 路径格式中的 "print working directory"?

git - 为什么 Git for Windows helper = manager 无法在新机器上运行?