How does git quickly merge all remote branches into a local test branch?

for example:

a,b,c 3
mytestmytest

current implementation: now I am merging other branches one by one through git merge XXX , but it doesn"t feel efficient. Do you want to know who has some better operations?

Git
Mar.04,2021
Menu