A quartermaster general is the staff officer in charge of supplies for a whole army.
In the Imperial German Army, while a Quartiermeister was a non-commissioned officer in charge of supplies, a Generalquartiermeister did not deal with supplies, but with operational command. He was the most senior officer below an Army's Chief of Staff.
For example, during the First World War, Erich Ludendorff was Generalquartiermeister to the German Second Army in August 1914. With his expert knowledge of the plans for the assault on Liege, which he had helped to draw up, he was sent to supervise that assault and took personal charge when the brigade commander was killed.
More famously, when Paul von Hindenburg, after Erich Falkenhayn's dismissal, was appointed Chief of the General Staff at the Oberste Heeresleitung (OHL or "Supreme Army Command") in August 1916, Ludendorff, who had been his Chief of Staff in the East, came with him. Ludendorff declined to be known as "Second Chief of the General Staff" and instead chose the title Erste Generalquartiermeister (First Quartermaster-General) - in which role he directed the operations of the German Armies and wielded power over German politics and industry.
Quartel-mestre-general (Portuguese for quartermaster general) is the traditional designation of the General in charge of the administration and supplies of the Portuguese Army. Currently, the designation is assigned to the commanding officer of the Army Logistics Command, who is a general officer with the rank of Lieutenant-General.
In the United Kingdom, the Quartermaster-General to the Forces (QMG) was one of the most senior generals in the British Army. In modern use the QMG is the senior General Officer in the army holding a logistics appointment and is currently the Lieutenant General holding the post of Chief of Materiel (Land) (CoM(L)) within Defence Equipment & Support. The QMG sits upon the highest committee within the army, the Army Board.