Unlocking Files and Folders in the Workspace

You can unlock files that have been locked in your local workspace, releasing them for other people to edit. While the files are locked, no other users or workspaces can check in changes or lock the files for their own use. The unlock command unlocks specified files or folders.


Before you begin:
  • You must have locked files or folders in your workspace.
  • Check in changes that you want to commit before unlocking the files in your workspace.
    Note: Unless you specify otherwise during checkin, the checkin operation unlocks all files included in the operation.
From the command-line client, run the unlock command.

sws unlock [--restore] -- path [path ...]
For more information on understanding the unlock command, see .Understanding the sws unlock Command For information-specific command options and arguments, see sws unlock Command Options.

Result: When successful, this unlocks all specified objects in the workspace. If any objects do not unlock, the command unlocks all the objects it is able to unlock. For each lock that the server fails to remove, it returns an appropriate error that helps you diagnose and fix the issues.