Suppress output of file creation in git from commit

时间:2017-03-22 18:40:22

标签: git bash

When I create a bare repo and push to it , my console gets clogged ...

enter image description here Is there a way to suppress all this output of "created" files.

It is correct but I just don't want the output.

resetBareServer(){
    ssh $server1 -t  "cd ~; rm -rf ~/root.git; mkdir root.git; cd root.git; git init --bare;"
    ( cd ~/root; push server1; )
}

Thanks.

Note the commit is causing all the output.

2 个答案:

答案 0 :(得分:0)

--quiet?

git clone --quiet

works with init too, apparently.

答案 1 :(得分:0)

what does push do?

from man git commit

   -q, --quiet
       Suppress commit summary message.