When I create a bare repo and push to it , my console gets clogged ...
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.
答案 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.