c. 1920, "a lower-class babu shipping clerk" [Partridge]; but popularized in World War II British armed forces slang for "Arab," also "native of India" (especially as a servant or laborer), roughly equivalent to American gook; possibly shortened from golliwog. Many acronym origins have been proposed, but none has been found satisfactory. Related: Wogland.
Others are reading
<a href="https://www.etymonline.com/word/golliwog">Etymology of golliwog by etymonline</a>
Harper, D. (n.d.). Etymology of golliwog. Online Etymology Dictionary. Retrieved $(datetime), from https://www.etymonline.com/word/golliwog