Germany has treaties with most countries. They either exempt foreign income or credit the foreign tax against German tax.
Exempt income can still raise your tax rate on other income (progression clause).
Full guideDouble taxation in Germany: how treaty relief worksGeneral information on German tax law, not advice on your individual case.