The islands were the only British soil occupied by German troops in World War II .