Welcome to the Wefugees Community and thanks for sharing your question with us!
We discussed a similar situation earlier on this platform - you may want to check the following thread for more information.
As Ghana is one of the so-called “safe countries of origin”, you will probably be faced with more difficult conditions, in case you apply for asylum.
If I understood correctly, the authorities do not know about your stay in Germany at the moment?
I would highly recommend you to seek some individual legal advice, for example in a migration counseling office. Please let us know if you need some support in finding one close to your current location.
I hope this helps and all the best for you,