Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm taking the dive into setting up and learning git and at the same time learning bash. I'm trying to do something simple as view the help section of

$ git config

unfortunately, when I type that the output of the help goes off the screen. Doing some googling I found less to be the program I want to use to scroll.

I tried

$ git config | less

with no success. Any ideas? Thanks!

share|improve this question

migrated from Sep 27 '10 at 17:41

This question came from our site for professional and enthusiast programmers.

up vote 8 down vote accepted

Git is probably writing its output into standard error stream instead of standard output stream because command parameters are not correct. Please read about Unix standard streams here.

To fix the problem you have to redirect the error stream into output stream like this:

git config 2>&1 | less

share|improve this answer

Piping only redirects stdout. If you want stderr as well then you need to redirect that to stdout first.

git config 2>&1 | less
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .