You can remember the meaning of 同伙 with this easy mnemonic:
My colleague shares the same (同) assistant (伙) as me.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.