git merge master/main is a frequent enough operation. Automatically detect whether the primary branch is master or main and merge.