Three US presidents have held the highest position in the U.S. military , they were ; George Washington , Commander in Chief of the Continental Army during the War of Independence , Ulysses S. Grant , Commanding General of the US Army during the American Civil War , and Dwight D. Eisenhower , Supreme Commander of the Allied Expeditionary Force in Europe in the Second World War .