I generally like the use of the pager in git, but for git stash
the pager annoys me. When calling git stash list
, I don't want to be shown the three lines of output in the pager -- it forces me to press q
just to make the output unavailable again when typing the folow-up git stash pop
command.
One solution would be to use
git --no-pager stash list
but that's to much typing (I'm lazy). Following the man page of git config
, I tried
git config --global pager.stash false
but this doesn't seem to do what the documentation says (actually, I didn't notice any effect). Then I tried
git config --global alias.stash "--no-pager stash"
again without any noticable effect.
The configuration gets properly updated, for example
git config pager.stash
false
It just does not have any effect. What am I missing? And how can I achieve that git stash
does not use the pager?
git config --global pager.stash false
not working was a bug fixed in git 1.7.7.3 and later. – Vernongit stash show -v
beforegit stash drop
, and I want the diff to remain in terminal (in case I did a mistake, or just for reference — frequently I do want to redo a small part of the changes in a different way). – Archipelago