In 1944 France after a devastating battle, scattered American ground troops find themselves disorganized and surrounded on all sides by German forces. Cut off from their company and without a radio, U. S. Army Brigadier-General Charles Lane, Sgt. Murphy Savage and Corp. Chan Derby come upon a small group of leaderless soldiers whom Lane encourages and organizes. At a nearby farmhouse, owned by the charming but irate Simone, Lane realizes upon examining his map that they are in the middle of a two-mile gap in the American line. Although Simone, who speaks no English, blames the Allied bombings for the destruction of her farm and the local village, she grudgingly allows the men to set up an impromptu command post after Derby offers her food supplies. Murph and Derby are surprised by Lane’s determination to remain in the field to organize and lead a new offensive to plug the two-mile gap. While patrolling an area near the farm, just as Lane and Murph spot a German observation post atop a ridge, Lane is gunned down by a German machine-gun nest hidden in a ditch. With Derby’s assistance, Murph destroys the nest. After taking Lane’s body to the farmhouse cellar, Murph and Derby then lament his death and wonder what to do next. Meanwhile, some soldiers direct Corp. Terry Sellers, lost in the field, to the farmhouse, and seeing Murph holding Lane’s helmet, believes that he is the general. Overcome by fatigue, Sellers collapses in despair until Murph rouses him using Lane’s uplifting phrases. Realizing that the disorganized foot soldiers are in desperate need of leadership and wanting to honor his long time commander, Murph decides to continue impersonating Lane in order to carry out the general’s plan. Derby warns Murph of the dangers of impersonating an officer, but ultimately agrees to support him. Uncertain of Murph’s intentions, Simone grows suspicious when Murph asks her to pin Lane’s star on his collar. Murph and the recovered Sellers then drive the jeep out to the soldiers in the field where Murph is startled by the appearance of Lt. Jeff Clayton, who looks to the “general” for orders. Clayton and the men are impressed when Murph declares that he and Sellers will take out the observation post themselves, thus convincing Clayton that the courageous “general” is a West Point graduate. Meanwhile, at the farm, Derby is dismayed by the appearance of Pvt. Orville Hutchmeyer, his and Murph’s former master sergeant in boot camp. Having been busted to private after Murph turned him in for cheating, Hutchmeyer longs for revenge, and consequently, Derby tries to convince him that Murph is dead. After strapping half of a blown up boiler tank to the jeep for use as a shield, Murph and Sellers drive directly to the enemy observation post and destroy it, to the cheers of the American soldiers below. Upon returning to the farmhouse, Murph panics when Derby tells him of Hutchmeyer’s presence, but Derby assures him that Hutchmeyer has been commandeered by the enthusiastic Clayton. Derby then reports that Simone has helped medics turn the barn into an aid station and that two American tanks are nearby. When Murph spots Hutchmeyer returning to the farm to romance Simone, he locks himself in the bedroom with her. While Murph yells and bangs furniture around the terrified Simone, Derby persuades Hutchmeyer to believe that the “general” is making love to Simone. After Hutchmeyer’s departure, Murph apologizes to the bewildered Simone, then he and Sellers position the tanks at a small bridge behind the farm where he suspects the Germans may attempt to cross. Clayton then returns with a captured German who reveals that a Panzer brigade is approaching. Murphy conceives of a plan to convince the Germans that the bridge is mined, hoping to persuade them to cross the dried creek bed instead, and thus expose their unprotected bottom side to attack by the American tanks. While waiting for the Panzers, Murph confesses to Derby his apprehension about putting so many men at risk and perhaps ruining Lane’s reputation. Two Panzer tanks arrive at the bridge and, as Murph intends, cross the creek ditch. One is blown up by the American tanks, the other chased down. Clayton then reports that four Panzers have broken through further up the creek. Clayton’s men have stopped two, but the others are approaching the farmhouse. Murph then takes Derby and Sellers to set up an ambush for the German tanks. After the tanks are disabled in the ambush, Clayton and his men arrive as back up, but when Murph sees Hutchmeyer, he hides and Derby pretends the “general” has departed. A barrage sends the men scurrying for cover and Murph is knocked out by flying shrapnel. Derby manages to cover Murph’s face when Hutchmeyer helps carry him back to the farmhouse. That evening when Murph revives in the cellar, Derby relates the news that the bombardment was from Allied reinforcements who arrived shortly after the tank assault. Lane’s death has been reported by radio, allowing Murph to resume his own identity. Relieved and pleased that Lane will be credited for the stand at the farmhouse, Murph agrees they must rejoin their outfit, but is displeased to hear a drunken Hutchmeyer upstairs serenading Simone. Murph then pretends to be his own ghost to frighten Hutchmeyer, allowing Murph and Derby to capture Hutchmeyer, tie him up and return him to his outfit. Murph thanks Simone for her kindness and bids her goodbye as Sellers returns, determined to continue serving with his favorite general.