git push foobar xxxxx:master
Likely you need to set up explicit push mapping in the configuration:
git config remote.foobar.push refs/heads/xxxxx:refs/heads/master
and then use git push foobar without explicit branch specification.
Additionally you may set up pre-push hook which would validate commits being pushed.