我一般都喜欢在git中使用寻呼机,但git stash寻呼机让我烦恼.在调用时git stash list,我不希望在寻呼机中显示三行输出 - 它会强制我按下q以便在键入folow-up git stash pop命令时再次使输出不可用.
一种解决方案是使用
git --no-pager stash list
Run Code Online (Sandbox Code Playgroud)
但这是打字很多(我很懒).在手册之后git config,我试过了
git config --global pager.stash false
Run Code Online (Sandbox Code Playgroud)
但这似乎没有做文件所说的(实际上,我没有注意到任何影响).然后我试了一下
git config --global alias.stash "--no-pager stash"
Run Code Online (Sandbox Code Playgroud)
再次没有任何显着的影响.
例如,配置得到适当更新
git config pager.stash
false
Run Code Online (Sandbox Code Playgroud)
它没有任何影响.我错过了什么?我怎样才能实现git stash不使用寻呼机?