p4 unlock
Release the lock on one or more files.
Syntax
p4 [g-opts] unlock [-c change | -s shelvedchange | -x] [-f] [file ...]
p4 [g-opts] -c client unlock [-f ] -r
Description
Files might be locked on a server from a failed submit from a client workspace. To unlock those files:
This releases locks that were created explicitly
using the If the file is open in a pending changelist other than
If no changelist is specified,
If no file name is given, all files in the designated changelist are unlocked. By default, files can be unlocked only by the changelist owner, who must
also be the user who has the files locked. However, administrators on the commit server can use the p4 unlock -fx readme.html Note
Consider that when the administrator uses the -fx option, the administrator undoes a feature of the +1file type described at File type modifiers. The exclusive lock for editing of the +1file type is meant to prevent other users from being able to affect the file. For an alternative approach to managing the files of an absent user, see the Support Knowledgebase article, "Reverting Another User's Files". |
||
|
Options
|
Unlock files in pending changelist
Tip
The p4 unlock -c option is different from the global -c option. |
|
Superuser or administrator force option that allows unlocking of files opened by other users. |
|
Commit/Edge: Unlock the files associated with the specified client that were
locked on the commit server due to a failed DVCS: Unlock the files associated with the specified client that were
locked on the remote server due to a failed |
|
If a file is locked in a pending shelved changelist, unlock it
and keep it within the |
|
In distributed environments, unlock files that have the
|
|
See Global options, and in particular the -p and -c options. |
Usage Notes
Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
---|---|---|
No |
No |
|
Related Commands
To lock files so other users can’t submit them |
|
To display all your open, locked files (UNIX) |
|