Explain this simple poem.

This is a genealogical poem, which explains the origin and destination of the family so that future generations can remember it.

Melons are born in Inti, and trees flourish because of their roots. Our family moved all the way from Shaanxi to Yangqu, Shanxi, and then to Huguang in the Tang Dynasty. At home, the three branches of "management, entry and night" moved to the north and south, and the two branches of "roar and greed" moved to Shamutai. So far, the five branches of our family have been separated from each other. Future generations must remember the family history and never forget the history of family migration.