How to transfer files from one branch to another?

There are three files. I've added them to the branch, and then realized that they should be in another thread, what to do in this case?
March 12th 20 at 07:59
1 answer
March 12th 20 at 08:01
Switch to the branch where you want to move a file, for example
git checkout master

Picking up from another branch desired file
git checkout <branch_name> -- <paths>
where paths path to file, you possibly can specify multiple paths through a space, I do not remember

Well, of course in that branch in which you originally put the files, they will remain, they need to remove most, if they are not needed there.

Find more questions by tags Git