You can apply for a permission to continue working in Germany as a cross-border commuters, if you lived in Germany and moved to a neighbouring EU member state or Switzerland.