Disable broadcast message or other output in Git command line response

I use a script to automate pushing latest change to remote repository. I added --quiet flag so that it will only prints output when I got error.

–quiet:: Suppress all output, including the listing of updated refs, unless an error occurs.

However, my script will break when there is remote message from GitLab. GitLab can display broadcast messages in Git remote responses as shown here Broadcast messages | GitLab. Is there anyway to make Git commands returns empty when there is no error? Thanks for the help.