About German flag on German vehiclces / France / 1940

  • Hi,
    Please, why did German vehicles wore German flags ? To avoid Luftwaffe attacks ? if so did such attacks occure ?
    Did official orders asked for example to the crewmen of a Panzer to put flag on the tank ?
    Thank you
    Philippe