The story
A figure of speech that goes back centuries. Although the collocation knowing is half the battle long predates the G.I. Joe cartoon series, its pop-culture ubiquity in the 21st century is explained by that popularization.
Etymology from Wiktionary, CC BY-SA 4.0.