How do I revert a p4 file?

How do I revert a p4 file?

Use p4 revert to discard changes made to open files, reverting them to the revisions last synced from the depot (with p4 sync ). This command also removes the reverted files from the pending changelists with which they’re associated. An administrator can use the -C option to revert another user’s open files.

Does p4 sync delete files?

If p4 sync is used to bring the head revision of this file into another workspace, the file is deleted from that workspace. A file that is open for deletion does not appear on the workspace’s have list.

What does p4 delete do?

The p4 delete command opens file(s) in a client workspace for deletion from the depot. The files are immediately removed from the client workspace, but are not deleted from the depot until the corresponding changelist is committed with p4 submit .

What does p4 reconcile do?

Open files for add, delete, or edit to reconcile a workspace with changes made outside of Helix server. You might need to use this command after working offline from Helix server.

What is p4 revert?

Description. Use p4 revert to discard changes made to open files, reverting them to the revisions last synced from the depot (with p4 sync ). This command also removes the reverted files from the pending changelists with which they’re associated.

What are shelved files?

The shelf is just a place to temporarily stash a file and does not include any versioning history contained in the depot files. Shelved files are always associated with pending changelists with one shelf per changelist. However, there can be multiple files on a shelf.

What happens when I revert files opened with P4 add?

When you revert files that have been opened by p4 add, Helix server leaves the client workspace files intact. When you revert files you’ve opened with p4 integrate, Helix server removes the files from the client workspace. When you revert files you’ve opened with p4 move, only the file open for move/add can be reverted.

What is the difference between P4 add and P4 move?

When you revert files that have been opened by p4 add , Helix server leaves the client workspace files intact. When you revert files you’ve opened with p4 integrate , Helix server removes the files from the client workspace. When you revert files you’ve opened with p4 move, only the file open for move/add can be reverted.

When to use P4 [G-opts] revert?

p4 [g-opts] revert [-a -n -k -w] [-c change] [-C client] [–remote=remote] file p4 [g-opts] revert [-a -n -k -w] [-Si] [-c change] [-C client] [–remote=remote] file Use p4 revert to discard changes made to open files, reverting them to the revisions last synced from the depot (with p4 sync ).

How do I revert changes made to open files?

Use p4 revert to discard changes made to open files, reverting them to the revisions last synced from the depot (with p4 sync ). This command also removes the reverted files from the pending changelists with which they’re associated. An administrator can use the -C option to revert another user’s open files.