Question: how to transfer all data from old mac to new mac?
Answer: Open Migration Assistant, which is in the Utilities folder of your Applications folder.
Click Continue.
When asked how you want to transfer your information, select the option to transfer from a Mac, Time Machine backup, or startup disk.
Click Continue.