• Name

    svn unlock – Unlock working copy paths or URLs.

    Synopsis

    svn unlock TARGET…

    Description

    Unlock each TARGET. If any TARGET is either locked by another user or no valid lock token exists in the working copy, print a warning and continue unlocking the rest of the TARGETs. Use --force to break a lock belonging to another user or working copy.

    Alternate Names

    None

    Changes

    Working Copy, Repository

    Accesses Repository

    Yes

    Options

    --targets FILENAME
    --username USER
    --password PASS
    --no-auth-cache
    --non-interactive
    --config-dir DIR
    --force
    

    Examples

    Unlock two files in your working copy:

    
    $ svn unlock tree.jpg house.jpg
    'tree.jpg' unlocked.
    'house.jpg' unlocked.
    

    Unlock a file in your working copy that is currently locked by another user:

    $ svn unlock tree.jpg
    svn: 'tree.jpg' is not locked in this working copy
    $ svn unlock --force tree.jpg
    'tree.jpg' unlocked.
    

    Unlock a file without a working copy:

    $ svn unlock http://svn.red-bean.com/repos/test/tree.jpg
    'tree.jpg unlocked.
    

    For further details, see the section called “Locking”.


    The Version Control with Subversion book is licensed under the Creative Commons Attribution License v2.0.
    To submit comments, corrections, or other contributions to the text, please visit http://www.svnbook.com.