Spain international Pedro scored a nine-minute hat-trick as Barcelona overturned a two-goal deficit to lead La Liga going into the winter break.
Getafe led 2-0 inside the opening 15 minutes after Sergio Escudero drilled in after a neat one-two and Lisandro Lopez powered in a free header.
But Barca, without the injured Lionel Messi and suspended Neymar, led before half-time thanks to Pedro's treble.
Getafe omen for Barcelona?
Since Getafe reached the Spanish top-flight for the first time in 2004-05, Barcelona have been crowned league champions in each of the six seasons that they have previously won at the Coliseum Alfonso Perez.
Cesc Fabregas scored twice more as the champions moved above Atletico Madrid.
Gerardo Martino's side knew they needed to beat eighth-placed Getafe with anything other than a 1-0 win to move back ahead of Atletico,
who won 3-2 against Levante on Saturday,
on goal difference.
The Spanish top-flight has a two-week mid-season break over the Christmas and New Year period, with La Liga clubs returning to action on 4 January.
While much of the pre-match focus concentrated on Barca's ability to cope without attacking duo Messi and Neymar, it was the away defence which was severely questioned in the opening stages at the Coliseum Alfonso Perez.
They went behind when Escudero exchanged passes with Angel Lafita before firing home from close range.
And four minutes later an unmarked Lisandro jumped above the Barca defence to nod in Pedro Leon's corner - leaving Barca coach Martino looking visibly shocked on the touchline.
But the Catalans' revival began as Pedro proved he could deliver in the absence of Messi and Neymar with trio of a clinical finishes.
Pedro is the first Barcelona player to have scored and/or created at least four goals in a La Liga game this season.
The winger raced on to Fabregas's pinpoint pass and then watched his chip have enough power to evade Getafe goalkeeper Miguel Angel Moya's grasp.
Pedro then cut in from the left flank to curl an unstoppable shot into Moya's top corner from the edge of the area and, just two minutes later, collected Jordi Alba's cutback to calmly slot in his third.
Barcelona enjoyed a measure of control after the break before ending Getafe's unlikely ambitions of mounting their own fightback with the fourth goal.
A wonderful team move saw Sergio Busquets break on the counter attack, before finding the supporting Pedro whose right-wing cross was emphatically volleyed in by Fabregas.
And the ex-Arsenal player added another from the penalty spot after Pedro was clipped by Getafe midfielder Borja Fernandez.
- 01 Moyá
- 20 Valera
- 18 Escudero
- 24 Mosquera Booked
- 04 López Booked
- 02 Ruano Delgado Booked
- 14 Sánchez Gil
- 23 Fernández Fernández Booked
- 09 Marica (Colunga - 60' )
- 07 Lafita (Gavilán - 80' )
- 17 Castro (Sarabia - 72' )
- 05 Lacen
- 08 Sarabia
- 10 Gavilán
- 11 Colunga
- 13 Codina
- 15 López Gómez
- 21 Madera
- 13 Pinto Colorado
- 22 Dani Alves Booked
- 18 Alba
- 16 Busquets Booked (Bartra - 89' )
- 03 Piqué Booked
- 14 Mascherano
- 24 Sergi
- 08 Iniesta
- 04 Fábregas (Song - 86' )
- 09 Sánchez
- 07 Pedro (Tello - 80' )
- 02 Montoya
- 15 Bartra
- 17 Song
- 20 Tello
- 21 Adriano
- 25 Olazábal Paredes
- 29 Dongou
Ref: Alberto Undiano Mallenco