Man charged for allegedly beating girlfriend while holding her child