S
S
sandrain2013-11-22 17:41:51
git
sandrain, 2013-11-22 17:41:51

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

4 answer(s)
I
int03e, 2013-11-22
@sandrain

STDERR is redirected to STDOUT. Apparently, so that some theoretical errors were visible in the console with a pool.

M
Masterme, 2013-11-22
@Masterme

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

M
Mikhail Osher, 2013-11-22
@miraage

man bash
section pipe

V
Vlad Zhivotnev, 2013-11-22
@inkvizitor68sl

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 question

Ask a Question

731 491 924 answers to any question