Merge 2 different files with windows OS and MAC OS?

When merging two different files with the same name, it remains unchanged. This kind of feature is seen with Windows OS. But, currently, I am using Mac OS. The thing is that I want to use that feature to my Mac OS. Does that feature also apply to Mac OS?
