Many people curerntly fleeing Ukraine do not need a visa for Germany from now until August 31, 2022. You can find out more about this in the “Am I allowed to enter Germany?” section. In this case, your stay in Germany is definitely allowed until August 31, 2022.
During this time you can check what options you have for a long-term right of residence in Germany:
1. You apply for a long-term visa. Normally, you must apply for a long-term visa at the German embassy in your home country. However, there is currently an exception for all persons who are exempt from the visa requirement. You can find out whether you are one of them in the section "Am I allowed to enter Germany?". If you meet the requirements for a long-term visa (e.g. a student visa, a visa for a skilled worker, family reunification, etc.), you can apply for the visa directly at the immigration office responsible for you. The immigration office responsible for you is the one at your current place of residence. You can find the address on bamf.navi. You can find out more about the various long-term visas in our “National Visa” chapter.
2. You apply for a residence permit in accordance with Section 24 of the Residence Act. You can read more about this in the "What is 'temporary protection' and who can get it?" section.
3. You apply for asylum. This is currently not recommended. You can find out more about this in the “Should I apply for asylum?” section.
4. If you are of Jewish descent, you can also apply for Jewish immigration. You can learn more about this in the "I am of Jewish descent. What are my options?" section.