threads / discuss / 46521

git checkout's stderr v stdout usage

Subject: git checkout's stderr v stdout usage

## tl;dr

4 messages between Aug 6, 2017 and Aug 18, 2020.

replies: 3people: 4as markdown or json

prateekrungta· Aug 6, 2017, 17:53 UTC · lore
```
  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.

rio45· Nov 27, 2017, 17:26 UTC · re: prateekrungta · lore

Re: git checkout's stderr v stdout usage

Great succession! I appreciates you and good to see such a positive responses. You can change your ip address of 192.168.l.254 login <https://192-168-1-254.tech/> and password details at anytime. Thank you!!

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

nemo54· Dec 2, 2017, 09:17 UTC · re: prateekrungta · lore

Re: git checkout's stderr v stdout usage

I found this an useful post. Thanks for sharing such a valuable details. I appreciates you very much. Now, you can check your Karnataka SSLC PUC Results 2018 at anywhere. Check for more information www.karresults.nic.in <https://karresultsnicin.org/> .

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

finnjones0222· Aug 18, 2020, 19:27 UTC · re: prateekrungta · lore

Re: git checkout's stderr v stdout usage

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/

← back to recent threads