Steve Cummings rode into the Tour of Britain lead as Team Sky's Wout Poels took the Stage 6 win.
Poels led the way, striking out with 1.5km to go to cross the summit alone for the victory, his third Tour of Britain stage win.
Cummings was among a group of chasers who crossed the line 21 seconds later, but it was enough to take the yellow jersey from Julien Vermote (Etixx-QuickStep) and earn himself a 49 second general classification lead Tom Dumoulin (Giant-Alpecin).
"The team have done an excellent job all week in taking care of me every day and sacrificed chances for Mark [Cavendish] in the sprints to protect me,” Cummings said.
“I was feeling a little bit of pressure coming into today and I just thought all I could do was do my best and I gave it my all at the end and I'm delighted to take Yellow.
"I've been second twice before in this race, once by four seconds and once by eight seconds I think, so this race is normally won by seconds not minutes.
“You still have to claw back those seconds and it's not done until it's done. The time trial I'll just give it full gas and hopefully it'll be enough to hold off the superstar time trialists Dumoulin and [Rohan] Dennis.”
In a stage run in extremely blustery and often wet conditions right from the start and the peloton never let the day's break get more than a three minute advantage.
With the race together at the foot of the Haytor climb it was Australian Rohan Dennis (BMC) who kicked things off with the first attack, being joined by Dumoulin, Poels and Gorka Izagirre (Movistar) as Vermote was distanced.
With 2.5km to go Cummings and Gallopin briefly made the junction with the three leaders, before Dennis went again, taking Dumoulin and Poels with him.
The next attack came from Poels, and despite the efforts of the Giant Alpecin and BMC rider they couldn't do enough to reel him in, allowing the Team Sky man to add victory atop Haytor.
"The last part we took control and we wanted to close the gap to go for the stage victory with me,” Poels said. "Yogi [Ian Stannard] and Danny [van Poppel] did a really good job, so I was really happy with that.
“It's my sixth [win] of the season already and it's always nice to win here at the Tour of Britain. Last year on the uphill finish and this year again. It's a really nice race."