p4 unlock
Synopsis
Release the lock on a file.
Syntax
p4 [g-opts
] unlock
[-c changelist
| -s shelvedchange
| -x ]
[-f] file
...
Description
The p4 unlock command releases locks created by p4 lock.
If the file is open in a pending changelist other than
default
, then you must use the -c
option to specify the pending changelist. If no changelist is specified,
p4 unlock unlocks files in the default changelist.
Administrators can use the -f
option to forcibly unlock a
file opened by another user.
If no file name is given, all files in the designated changelist are unlocked.
Options
|
Unlock files in pending changelist
|
|
If a file is locked in a pending shelved changelist, unlock it
and keep it within the |
|
Superuser or administrator force option; allows unlocking of files opened by other users. |
|
In distributed environments, unlock files that have the
|
|
See the “Global Options” section. |
Usage Notes
Can File Arguments Use Revision Specifier? |
Can File Arguments Use Revision Range? |
Minimal Access Level Required |
---|---|---|
No |
No |
|