Skip to contentSkip to conversation

git checkout's stderr v stdout usage

DISCUSSION prateekrungta 4 participants 4 messages Aug 6, 2017 – Aug 18, 2020

lore
Share & tools
lore
#0 lore raw
```
  git checkout -b new_branch 
```

Git does what's asked except that Git's success response ("Switched to a new branch 'new_branch'"), goes to to stderr instead of stdout.

This feels against standard unix conventions of what to output to stderr v stdout. It's an extra jump that people scripting Git keep running into when they encounter this behaviour. For e.g. other users have complained about this as far back as 2010:
http://git.661346.n2.nabble.com/Bugreport-Git-responds-with-stderr-instead-of-stdout-td4959280.html

I'd like to suggest changing informational messages to stdout, and erroneous ones to stderr. May I submit a patch to change this behaviour?

--
View this message in context: http://git.661346.n2.nabble.com/git-checkout-s-stderr-v-stdout-usage-tp7657477.html
Sent from the git mailing list archive at Nabble.com.

#3 lore raw
In reply to prateekrungta

Canon printers are one of the essentials in every office as well as households. To start using your Canon product you can read all required information at * ij.start.cannon
<https://canon-comijsetup.me/ij-start-canon/> *. The process of setup of printers is available at * canon.com/ijsetup <https://canon-comijsetup.me/>
*. Of you are still confused about something, then quickly get in touch with the experts here.

--
Sent from: http://git.661346.n2.nabble.com/