Answer the question
In order to leave comments, you need to log in
What does git pull 2>&1 do?
Good afternoon.
There is a question, what does the git pull 2>&1 command actually do
. There is no doubt about git pull pumping out changes.
I was told that 2>&1 is stderr and stdout, but I can’t understand what this has to do with git.
Answer the question
In order to leave comments, you need to log in
STDERR is redirected to STDOUT. Apparently, so that some theoretical errors were visible in the console with a pool.
this has nothing to do with git specifically, but with console commands in general
http://stackoverflow.com/questions/818255/in-the-shell-what-is-21
Outputs STDERR to STDOUT, indeed. This is necessary in order, for example, to grep "two" pipes at once.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question