Welcome to the Wefugees Community and thank you for reaching out to us!
In general, refugees can marry foreign citizens in Germany. However, the whole process might be not that easy, as many people struggle to provide all the required documents. Please have a look at our blog, which gives more information on this.
In theory, your girlfriend could apply for a Schengen-Visa (short-term/visiting visa) and you could get married, as soon as she is in Germany. But depending on her personal situation, she could face troubles to get the visa granted by the German embassy. Are there maybe some relatives in Germany who could support her application?
At the end, given the fact that you manage to get married, the question if she can stay in Germany on a spouse visa (in any case, she most probably would need to return to Turkey and apply for another visa category respectively) is also dependent on your specific status and residence permit. You may want to explain some more details on this.
Would you agree @MBEon-Sophie or @mbeon-caritas?
Please get back to us if you want to discuss your situation further.
All the best,