Lets say I have the following two branches and the local branch is 'mybranch'
master
master\file.txt
master\directory\file2.txt
...
mybranch
mybranch\otherfile.txt
I'd like to create a new directory, call it 'test'. I'd like to put ALL of the contents of master into mybranch\test
. I don't want those files and directories staged, just copied.
I've tried git checkout mybranch --
with various combinations of wildcards, slashes, dots, and I just can't get it to work.
So in this example, my end result would be
mybranch
mybranch\otherfile.txt
mybranch\test\file.txt
mybranch\test\directory\file2.txt
Can this be done without switching branches?