git merge only works in the index, it does not create temporary files in the file system to merge it.
If there are conflicts during the merge, and you use git mergetool to resolve them, then git mergetool will write temporary files so that your merge tool can perform a three-way merge. They usually clean up automatically, but if you interrupt the git mergetool workflow, you can leave them in place.
source share