In a local folder with several files, I have a git repository for which branch x only includes a few of those files, and the master one includes them all.
When I try to switch from x to master, I get:
$ git checkout master
error: The following untracked working tree files would be overwritten by checkout:
[...some files...]
Aborting
EDIT: None of the listed files belong to branch x, they all belong to the master one. I'm pretty confident they haven't been modified and in any case I am ok with going back to whatever version of them is saved in the master branch.
What should I do?