The first meaning is that of secretary-general.
The second meaning of '\general secretary is the head of a political party or political group. This meaning is often associated with Communist organizations. The official title of the de-facto leader of the Soviet Union was "General Secretary of the CPSU Central Committee'". Joseph Stalin is known to be the first to elevate the position from the former meaning to the latter.