I will put a bit of a damper on cleverrainbow's and deloz's enthusiasm.
First, there are two kinds of masterks programs in Germany: consecutive and non-consecutive. Non-consecutive programs are open to anyone who meets the general admissions criteria, while consecutive master’s programs require that a student have a degree in the same discipline as the original degree, and enough overlap between the curricula at whatever school the student did their bachelor’s at compared to the bachelor’s at the school with the master’s program. If the difference is too large (more than about one semester’s worth), you can be refused admission.
Secondly, if you are coming from outside the EU, the university must recognize your undergraduate degree as being at a school comparable to the one to which you are applying.
Finally, in the event you are admitted, you may find that you need to get approval from the study advisor of the major you wish to pursue, and possibly have to obtain credit for each individual course you want to transfer from each individual instructor responsible for the respective courses at the new university. Moreover, if you are missing too many credits, your application for transfer will likely be declined, as there are generally minimum limits for how many credits can be transferred from the bachelor's degree.