Can I integrate checked out files into a different branch on perforce

后端 未结 6 1722
无人共我
无人共我 2021-01-04 19:26

We were working on a design, and for that we created the skeleton of the classes in our main branch. Now, we are starting to code, and for that we got a new branch. So, it

6条回答
  •  春和景丽
    2021-01-04 20:05

    Not really.

    You can of course simply open the files for edit in the new branch, and manually copy the changed files from the workspace of your main branch to the new branch's workspace. This is probably the easiest way if it just a few files.

    Here are a few scripts that can be handy if a larger number of files are involved. E.g., with the P4Shelf script you can create an archive of all your changed files, and later automatically open them in any branch with the changes restored.

    Also, check out some other nifty scripts for Perforce by Jim Tilander.

提交回复
热议问题