Troubles redirecting git output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello guys, hope you're doing great.

I'm reaching out today because I cannot find a fix for my issue. I'm using git 2.25.1 from the debian repo. I'm having difficulties to redirect git stderr, here is an example:

---
$ git init
Initialized empty lol/.git/
$ git branch >&2 2>/dev/null
fatal: your current branch 'master' does not have any commits yet
---

Is this an expected behavior? I find it weird not to be able to silent git. Are you aware of a workaround? I've been browsing a bit but did not find an answer yet.

Thanks for your time!

Baptiste




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux