“Just as a person, having discarded worn garments, takes other new ones, so the embodied one, having discarded worn bodies, passes into other new ones.”
Going deeper
The image here is a change of clothes. 2.22 says that as a man casts off worn-out garments and puts on new ones, so the embodied self casts off its worn-out bodies and enters into new ones. Kṛṣṇa is speaking, still on the subject of the self in chapter 2. The verse before, 2.21, has asked how one who knows this self to be indestructible could cause anyone to be killed. The verse after, 2.23, says that weapons cannot cleave it, fire cannot burn it, waters cannot wet it and wind cannot dry it. In the Sanskrit, the words for casting off, for worn-out and for new each come in both halves of the comparison, once for the garments and once for the bodies. See what the Gītā says about knowledge for related verses.