Yoga is a group of physical, mental, and spiritual practices or disciplines which originated in ancient India and aim to control (yoke) and still the mind, recognizing a detached witness-consciousness untouched by the mind (Chitta) and mundane suffering (Duḥkha). There is a wide variety of schools of yoga, practices, and goals in Hinduism, Buddhism, and Jainism.The ultimate goals of yoga are stilling the mind and gaining insight, resting in detached awareness, and liberation (Moksha) from saṃsāra and duḥkha: a process (or discipline) leading to unity (Aikyam) with the divine (Brahman) or with one's self (Ātman). This goal varies by philosophical or theological system. In the classical Astanga yoga system, the ultimate goal of yoga is to achieve samadhi and remain in that state as pure awareness.There is no consensus on yoga's chronology or origins other than its development in ancient India. There are two broad theories explaining the origins of yoga. The linear model holds that yoga has Vedic origins (as reflected in Vedic texts), and influenced Buddhism. This model is mainly supported by Hindu scholars.
📖Read more on wikipedia