Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set --quiet flag by default in git? [duplicate]

The git output is very verbose for me. How can I set --quiet flag by default to all commands in git?

EDIT: I have to use this -q mode in git jenkins plugin. I can't use alias, redirect to dev/null.

like image 646
t0mq Avatar asked Nov 19 '25 12:11

t0mq


1 Answers

You can't set the quiet flag for all your commands in the gitconfig. As @torek mentioned, there is no way to set built-in commands as aliases. So set up your aliases as they are the more convenient to you.

[alias]
    commitq=commit --quiet
    commit-quiet=commit --quiet
    pushq=push --quiet
    st=status -s
    ...
like image 174
YoannFleuryDev Avatar answered Nov 21 '25 03:11

YoannFleuryDev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!