When organizing files on a Mac, you may eventually end up with two folders that have the exact same name. Perhaps you have a “Photos” folder on your desktop and another “Photos” folder on an external drive, and you want to combine them into one.
If you try to simply drag one folder into the same location as the other, macOS will usually ask if you want to “Replace” the existing folder. Clicking Replace is dangerous—it will entirely delete the old folder and all its contents, replacing it with the new one.
If your goal is to combine the contents of both folders so that you keep all the files from both, you need to trigger the hidden “Merge” option.
In this guide, you will learn the correct way to merge two identically named folders on a Mac without accidentally deleting any data.
How to Trigger the Merge Option
To safely combine folders in macOS, you must use a specific keyboard modifier while dragging the folder.
- Locate the two folders you want to merge. (Remember, they must have the exact same name for this to work).
- Click and hold the folder you want to move.
- While still holding down your mouse button, press and hold the Option (Alt) key on your Mac keyboard.
- Drag the folder into the exact same location as the destination folder.
- Release your mouse button before you release the Option key.
Because you held down the Option key, macOS will display a completely different warning dialog box. Instead of just offering “Stop” or “Replace”, the dialog box will now include a third button: Merge.
Understanding the Merge Process
Click the Merge button. macOS will now intelligently combine the contents of both folders.
Here is exactly how the merge process handles your files:
- Unique Files: If a file exists in Folder A but not in Folder B, it will be kept safely in the newly merged folder.
- Identical Files: If the exact same file (same name, same date, same size) exists in both folders, macOS will keep one copy.
- Same Name, Different Content: If a file has the same name in both folders, but they are actually different versions (e.g., one was edited more recently), macOS will pause the process. It will ask if you want to keep the newer file, keep the older file, or keep both (which will automatically rename one of the files by adding the word “copy” to the end).
Organizing with Confidence
By using the Option key trick, you can safely consolidate scattered folders across your Mac and external drives. The macOS Merge feature ensures that no files are ever overwritten or deleted by accident, allowing you to organize massive collections of documents, music, and photos with total peace of mind.