Dear @Siza,
thank you for sharing your question with the Wefugees Community!
Here is some general information: If you want to get a residence permit in Germany there are different possibilities. You can get a residence permit f. e. because you found a job here, you want to do a vocational training or to study at a University. You can also get a residence permit through marriage, to take care of a child or if you apply for asylum and it is successful.
Here you can find an overview of some of the reasons for a residence permit i mentioned:
https://***.germany-visa.org/german-residence-permit/
But please keep in mind that for most of the residence permits there are a lot of prerequisites that you need to fulfill f. e. you need a passport, enough money to secure your living and it could also happen that you would be sent back to your homecountry and enter again with the right visa.
If you need more information it could help that you´d tell us a little bit more about your situation and why you want to get a residence permit in Germany.
All the best
Melina
Note: Please keep in mind that we can´t provide qualified legal advice via the internet and that any information given can´t replace such legal advice.