Jump to content

How to copy a specific file or directory from another branch


dwicks

Recommended Posts

In git, I can use `git checkout branchname -- path/to/file.uasset` to pull a version of a file from another branch into my working branch. I have not found an equivalent command in plastic, and have resorted to `cm switch branchname`, copy + paste file to desktop, `cm switch workingbranch`, copy and paste file from desktop to replace contents. Since that workaround is very painful (especially if there are lots of other files that have changed between branches and need download), I'd love to be pointed in the right direction for a simple Plastic command to switch the version of a single file (or directory) to match what is seen on a different branch. The changes don't necessarily match up with a single changeset that could be cherry-picked, so that's sadly not an option.

 

Thanks!

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...