If we merge two branches such that in one branch I edit the whole file from start to end and in other branches, I do not change anything left the original content then what will be the final content of the file when I merge both branches?
The answer is probably it depends. It depends mostly on the shared parent of the 2 branches. And more things may get involved based on the merge strategy Git lands on.
The most likely answer will be: