To clean that up, one trick is to look for "squashing git commits" and/or "git reset -soft".