How to reduce the workload of project consolidation when upstream changes of a project

I have a front-end project B , which is developed on the basis of project A . After the code management tool uses git, for a period of time, both project An and B move forward, and there is a partial conflict between An and B"s modified code. If B wants to bring in the change of A Synchronize, what should be done with the least amount of work?

currently using merge:

create a new branch New-A, to pull the latest code from project A to New-A, and merge New-An into B, but doing so creates a huge amount of conflicts, which is time-consuming to resolve, and you have to be very careful

I don"t know if you have a better way. It"s not limited to git,. Thank you. Thank you.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35069-404ea.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35069-404ea.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?