Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个流,即 S1(让它成为源流)和 S2(目标流)。假设有一个文件“abc.txt”,当前版本#5。我需要将 #1 和 #5 之间在“abc.txt”中所做的更改合并到我的目标流 S2。有人可以建议这是否可行?
是的,这是可能的。
p4 switch S2 p4 merge --from S1 abc.txt
如果您只想合并所有文件中的所有未完成更改,请不要使用abc.txt. 如果您只想合并特定范围的更改,请将范围添加到文件路径(例如abc.txt#4,#5或abc.txt@123,456)。
abc.txt
abc.txt#4,#5
abc.txt@123,456