← 返回命令列表

Linux command

gh-mintty 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show MinTTY compatibility help

gh help mintty

Work around MinTTY input issues

winpty gh auth login

说明

gh-mintty is a help topic in the GitHub CLI describing known compatibility issues between gh and MinTTY, the default terminal emulator shipped with Git for Windows. MinTTY lacks proper pseudo-console support, which breaks gh's interactive prompts. Three workarounds exist: 1. Reinstall Git for Windows with "Enable experimental support for pseudo consoles" checked. 2. Run `C:\Program Files\Git\bin\bash.exe` from a different terminal emulator (e.g. Windows Terminal), which provides access to Git for Windows tools without MinTTY. 3. Prefix gh commands with `winpty` (e.g. `winpty gh auth login`), though this can cause UI rendering bugs.

FAQ

What is the gh-mintty command used for?

gh-mintty is a help topic in the GitHub CLI describing known compatibility issues between gh and MinTTY, the default terminal emulator shipped with Git for Windows. MinTTY lacks proper pseudo-console support, which breaks gh's interactive prompts. Three workarounds exist: 1. Reinstall Git for Windows with "Enable experimental support for pseudo consoles" checked. 2. Run `C:\Program Files\Git\bin\bash.exe` from a different terminal emulator (e.g. Windows Terminal), which provides access to Git for Windows tools without MinTTY. 3. Prefix gh commands with `winpty` (e.g. `winpty gh auth login`), though this can cause UI rendering bugs.

How do I run a basic gh-mintty example?

Run `gh help mintty` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more gh-mintty examples?

This page includes 2 examples for gh-mintty, plus related commands for nearby Linux tasks.