In the afternoon I came upon a handy A-Z Index of the Apple macOS command line.
You can merge two terminal windows into one as follows:
- Use ⇧⌘T to make the tab bar visible in both terminal windows.
- Drag the tab of one window onto the tab bar of the other window.
You can also make the tab bar visible using View → Show Tab Bar.