I have two branches master
and limited
. From the limited
branch I want to checkout all the files that are in the master
branch but without actually switching to it.
I tried git checkout master *.*
but I think by *.*
it takes the file names from my current limited
branch and tries to checkout only those files, which don't actually exist in my case and doesn't work in general because that's not what I want. Is there some other command to checkout all files of a different branch?