Somehow knit cogs into garment (8)
I believe the answer is:
stocking
'garment' is the definition.
(I know that stocking is a type of hosiery)
'somehow knit cogs' is the wordplay.
'somehow' indicates anagramming the letters.
'knit'+'cogs'='knitcogs'
'knitcogs' anagrammed gives 'STOCKING'.
'into' is the link.
(Other definitions for stocking that I've seen before include "White marking on the lower part of a horse's leg" , "Leg wear" , "some legwear" , "an example of 1 ac [HOSE]." , "a hang-up at Christmas?" .)