I have created a new file called ABC.txt in branch x. I didn't commit the changes.
Then I wanted to move these changes into a new branch called y. So I followed these steps:
$ git diff > mypatch.diff$ git clean -fd$ git checkout y$ git apply myPatch.differror: ABC.txt: No such file or directory
Why git can't simply create my new ABC.txt file in the current branch I'm in?