wordhistories.net
meaning and origin of ‘to pull one’s socks up’
probably British English, 1880s—to make an effort to improve or reform, ‘to pull oneself together’—based on the image of sprucing oneself up