A Ballina man allegedly hit his then-pregnant partner on the head with a shovel causing her to faint and be rushed to hospital for stitches, a court has heard.