Source

INDIA, June 24, 2016 (Eastern Panorama, by Nanda Kirati Dewan):
Many people have a misconception about the Gorkhas in India — that they are foreigners and have migrated from Nepal. There could not be a greater mistake than this. The Gorkhas are in fact the aborigines of India and they can trace their history back to ancient times. The Gorkha community is the product of Indo-Aryan and Mongoloid assimilation from ages past. As a linguistic group they can trace their origin back to Indo-Aryan and Tibeto-Burman beginnings. In fact the Gorkhas consist of both Indo-Aryan and Mongoloid racial groups. In the Mahabharata and Manusmriti names of Khasa are mentioned. They are in fact the Gorkhas. The Gorkhas spoke the language then known as Khaskura Khasas as a community existed in Nepal which it later changed to another ethnic name. The Lichchhavis, one of the aboriginal tribes of India originally lived in the plains of present Nepal. During the early centuries, the Gorkhas, the aboriginal tribe in India, migrated to Nepal and established themselves there. Other groups from India also migrated to Nepal which comprised high caste Hindus.

During the Muslim invasion of India in which they occupied part of North India from the eleventh century to the sixteenth century, many Indian tribes from the plains of India migrated to Nepal for the security and safety of their religion and culture. These migrants to Nepal were mainly of high castes and powerful groups, and they themselves established their kingdoms and principalities. You can safely deduce that the major part of the population of Nepal came from India who later came to be known as Gorkhas. Gorkhas have insisted that they are not migrants to India. They say that they came to India along with their land, skills and culture. When one-third of Nepal was annexed by the British after the Anglo-Nepal War in 1815, the residents of that territory became subjects of the British East India Company. In 1857, when the crown took over India from the East India Company, the Gorkhas became citizens of British India and when India became Independent in 1947, they automatically became Indian citizens.

For more, go to source.