Ghana is seriously one of the safest places in Africa.
If you simply just maintain usual safety considerations and don't put yourself in an obviously unsafe position, you will find the country
incredibly safe. Seriously, I was alone at night and someone walked past me with a machette. I didn't even bat an eye because I was so at
peace with the people here, I knew he'd just been trimming some hedges or something.
For women? I know as a guy I shouldn't comment on what I think a girl is likely to experience, but I have gathered enough information to know regardless of gender this place is safe keeping in mind the unfortunate truth that any country on the planet is more dangerous as a woman than a man. I met 3 women and asked for their experience, all 3 vouched exactly the same thing. One (from Ireland, around 50) lives in Accra, another (from Estonia, around 23) had spent 3 months riding their bike around the country alone, and the third (from Germany, around 40) was working away from home in Busua (go here its amazing!).
It goes deeper than just avoiding unfortunate situations, I believe following the gut is always the right decision. There wasn't even any underlying anxiety or gut feeling, unlike Morocco, where I never faced danger but I had that feeling once or twice.