People had started growing plants and cattle-herding when they grow tired of moving from one place to another. Hunters and gatherers are nomads. They tend to move when they think that the resources are scarce in their location.They believed that if they could grow these foods instead, they would be able to feed their families and community.
The nationalists were defeated in the civil war in china.
I world say the answer is between 400 and 200 BCE