Pagine

Tuesday 20 December 2016

SVN tutorial n 24 - unlock

The svn unlock command unlocks files or directories previously locked.  If any file (or directory) is locked by another user or no valid lock token exists in the working copy,
print a warning and continue unlocking the rest of the files (and directories). Use "--force" to break a lock belonging to another user or working copy. The synopsis is:
 svn unlock <path>
When a commit fails due to someone else's locks, it's fairly easy to learn about them. The easiest way is to run:
 svn stat -u

Examples:

1) unlock the files in working copy
 svn unlock file1.txt file2.txt fileN.txt
2) unlock a file already locked by another user
 svn unlock --force file1.txt
3) unlock a file via url
 svn unlock https://svnrepo/svn/myproject/trunk/file3.txt

No comments:

Post a Comment