How do you clear the default changelist without altering your worktree in Perforce

本小妞迷上赌 提交于 2019-12-12 19:00:54

问题


By accident I reconciled all my work. I want to now keep my working tree as it is, but have perforce remove the changes from the default changelist. How do you clear the default pending changelist without affecting the files? I do not want to revert to the depot state.


回答1:


p4 revert -k //...

Note that this is a little dangerous because now you have local changes that Perforce doesn't know about -- they'll be silently missed when you submit (unless you do another reconcile), and a force sync may overwrite them. If your changed files are open, Perforce can be a lot more intelligent about the fact that you've made changes to them -- schedule resolves when they change in the depot, be careful not to modify them when syncing, etc.



来源:https://stackoverflow.com/questions/34228766/how-do-you-clear-the-default-changelist-without-altering-your-worktree-in-perfor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!