Re: [p4] p4 sync for recreated client
Sambwise <[email protected]> Fri, 9 Feb 2018 07:40:02 -0800
| Newsgroups | gmane.comp.version-control.perforce |
|---|---|
| Message-ID | <[email protected]> |
Posted on behalf of forum user 'Sambwise'. Adding on to what Sven said about "sync -k", this is the sequence I think you want to do: p4 sync -k p4 clean The "clean" command will re-sync any files that don't match the expected state. Note that if you made any changes in your workspace, these are now gone! A good refinement to this is to add a date to the "sync -k" command to match the time when the client was last synced (if you know it). That will minimize any difference between what you're telling the server you have and what you actually have. In addition, if you know that timestamp, you can use "reconcile" instead of "clean" to catch modified files -- just don't do this if you did the "sync -k" to head, since then any out-of-date files will look "different" and you'll end up rolling back other people's changes. -- Please click here to see the post in its original format: http://forums.perforce.com/index.php?/topic/5619-p4-sync-for-recreated-client _______________________________________________ perforce-user mailing list - [email protected] http://maillist.perforce.com/mailman/listinfo/perforce-user