0

I have problem with getting git pager working when I have ssh connection. I am using latest windows terminal and the remote is a ubuntu 24.

This config does not use less when I am running ie. git log command.

git config --global core.pager less 

Do i have to configure ssh with pty allocation like "ssh -t". I tried these but it did not solve the issue. I am running out of ideas.

8
  • git var GIT_PAGER ? echo $GIT_PAGER ? echo $PAGER ? git config core.pager ? "Do i have to configure ssh with pty allocation like "ssh -t"?" Why not just try? Commented May 30 at 10:52
  • 1
    git var GIT_PAGER is less. git config core.pager is less. PAGER is less, GIT_PAGER is less. Yet I don't get pager. And i have tried ssh -t also. The behavior is the same on my local machine also using git bash in windows terminal. Commented Jun 2 at 7:53
  • Does less work at all? echo test | less ? Locally and in ssh session… Commented Jun 2 at 8:32
  • 1
    Yes, confimed. It works on local and on ssh remote. Commented Jun 2 at 12:37
  • Then it's strange, indeed… Commented Jun 2 at 12:42

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.