Lars Stindl rescued a draw in stoppage time to extend Germany's unbeaten run to 21 matches as the world champions twice came from behind to earn a 2-2 draw with France in Cologne.
Stindl, an 83rd-minute replacement for Emre Can ensured Joachim Low's finished 2017 without tasting a single defeat, their last loss coming at the hands of France in the European Championship semi-finals last year.
That run looked like coming to an end when Alexandre Lacazette netted twice on Tuesday – the Arsenal striker profiting from Anthony Martial's brilliant footwork for his first before Kylian Mbappe created his second.
In between the Arsenal striker's brace Timo Werner levelled for the hosts as he broke the French offside trap to sweep home Mesut Ozil's pass.
But a second goal looked too much for the hosts as the game entered stoppage time, however substitute Stindl had other ideas as he fired low past Steve Mandanda just 10 minutes after coming on.
Low will hope to see better defending when his side face Spain and Brazil before they begin their World Cup defence in Russia, but their battling spirit will give the coach plenty of encouragement.
A Germany side showing six changes from their draw with England took time to settle and that allowed France to have the better of the opening exchanges, although they initially failed to stretch Kevin Trapp.
Mbappe may well have done when he found space in the 12th minute, but Mats Hummels came to Germany's rescue with a perfectly executed sliding tackle.
Lacazette – preferred in attack to Antoine Griezmann – eventually tested Trapp just before the half-hour mark, while at the other end an important block from Raphael Varane denied Ozil.
Minutes later Trapp had to be alert again to keep Mbappe out low to his right, the Paris-Saint Germain goalkeeper denying his club-mate after a neat Cruyff turn in the penalty area.
Finally, in the 33rd minute, the goal France's pressure deserved came, Martial dancing past Niklas Sule before touching the ball wide of Trapp for Lacazette to apply a simple finish.
Sacre bleu! Nothing Trapp can do this time, as Martial goes full FIFA to give Lacazette a tap-in (33') #GERFRA 0-1— Germany (@DFB_Team_EN) November 14, 2017
Half-time substitute Antonio Rudiger should have brought Germany level seven minutes after his introduction, but the Chelsea defender skewed his effort wide after great work down the left from Julian Draxler.
Germany did not have to wait long for their equaliser as Ozil led a swift counter-attack, his pinpoint throughball releasing Werner and the RB Leipzig forward calmly slotted under Mandanda.
Almost immediately Martial thought he had restored France's lead, but Trapp got down brilliantly to push away his dipping strike.
A Kroos free-kick rattled Mandanda's bar with 20 minutes to play but while the Real Madrid midfielder was wondering how it stayed out, France scored.
Rudiger inexplicably left Lacazette in acres of space 20 yards from goal and the 26-year-old beat Trapp again after being found by Mbappe's pass.
Low introduced Mario Gotze for his first international appearance in just shy of a year and he came good with a superb assist for Stindl, who kept their run going by sliding home a neat 93rd-minute finish.
|Investment not necessary for United to challenge City – Lukaku|
|So close, but so far away – Vorm laments another Spurs failure|
|Melbourne Victory 2 Adelaide United 1: Berisha stunner seals last-four spot|
|Sharks upset Panthers as Eels finally get off the mark|
|Lopes: A return to Man City? My present is Monaco but the future belongs to God|
|Jaguares catch out Brumbies in Canberra|
|Montella urges Sevilla to use Copa setback as motivation|
|Zheng topples Wang in Zhengzhou final|
|Rakitic desperate for Iniesta stay|
|Jardim one of the best in the world – Lopes praises Monaco boss amid interest|
|Napoli refusing to give up on Scudetto dream|
|It´s a good time for Iniesta to leave Barca, says father|
|Athletics´ Manaea no-hits Red Sox, Darvish struggles once again|
|Pelicans reach second round, 76ers take 3-1 lead and T-Wolves down Rockets|
|MLS Review: Five-star LAFC, Dynamo headline goal frenzy as Atlanta silence Ibra´s Galaxy|
|Busch pulls away to claim third successive NASCAR win|
|Sanchez hails legendary Wenger ahead of Arsenal exit|
|Valverde: Nothing behind Iniesta substitution amid growing CSL links|
|White Sox´s Farquhar in critical condition after brain haemorrhage|
|Cubs place Ben Zobrist on 10-day DL|
|Hoffenheim boss Nagelsmann dismisses Arsenal and Chelsea links|
|Johnson, Landry tied for Texas lead as Mullinax sets course record|
|Gattuso, Mirabelli apologise to Milan fans after ´embarrassing´ Benevento loss|
|Marquez to start fourth after being stripped of Austin pole|
|Iniesta to make decision on his future public ´this week´|
|United want to win everything next year, says Wembley hero Sanchez|
|Cardiff edge Forest to boost promotion push|
|Bartomeu confirms Iniesta has an ´offer´ amid Chinese Super League reports|
|Messi second player to score in five Copa finals|
|Khan makes up for lost time with 40-second Lo Greco knockout|
|Mourinho challenges Alexis after Wembley star turn|
|Vieira ready for Arsenal job, says Guardiola|
|FA Cup win would represent successful season - Conte|
|Guardiola: I want Manchester City to be a Premier League machine|
|Marquez crashes before taking controversial pole in Austin|
|Sevilla 0 Barcelona 5: Suarez and Messi lead crushing Copa final win|
|Defending champion Selby dumped out in first round|
|AC Milan 0 Benevento 1: Rossoneri suffer again as bottom side stave off relegation...for now|
|Ulster stay alive in dramatic fashion as Bellini sparkles for Zebre|
|Semi-final pain for frustrated Kane|
|London stay was crucial to FA Cup Wembley win - Mourinho|
|Pochettino: Spurs need four more years – with me or another|
|Kaepernick honoured with Amnesty International award|
|He has not delivered optimal performances - Stoger explains Schmelzer omission|
|Kvitova and Pliskova put Czechs in control|
|Modric open to Ibrahimovic union in MLS|
|Spurs can´t keep doing this – Alli|
|Bulls keep Rebels waiting for South Africa win, Sharks beat Stormers|
|Heynckes highlights importance of ´psychology´ before Real Madrid clash|
|United are about winning titles and playing finals, says happy Herrera|
|Pogba and United the comeback kings again|
|Destructive De Villiers demolishes Daredevils|
|Giroud thanks Wenger for making his ´dream come true´|
|Borussia Dortmund 4 Bayer Leverkusen 0: Reus and Sancho star as Stoger´s side go third|
|Manchester United 2 Tottenham 1: Sanchez and Herrera seal comeback to book FA Cup final spot|
|Zaha´s no diver, insists Hodgson|
|Quiros maintains one-shot lead in Rabat|
|Championship Review: Wolves win title, Sunderland relegated|
|Nishikori fights back to reach Monte Carlo final|
|´Nothing compared to that night´ - Masters victory left Allen feeling flat|
|Imperious Leinster ease into Champions Cup final|
|Wilson backs Wenger for international role|
|West Brom comeback branded ´useless´ by Klopp|
|Injured Kyrgios doubtful for French Open|
|Packers QB Aaron Rodgers ventures into ownership, buys stake in NBA´s Bucks|
|Lewandowski breaks Bundesliga record in Bayern Munich victory|
|Watford 0 Crystal Palace 0: Stalemate edges both sides closer to survival|
|Inter not inferior to Roma and Lazio, Spalletti insists|
|Pogba and Sanchez start for Manchester United at Wembley|
|Gayle fires Kings XI to the top of the table|