After an employee quits you should remove his/her permissions on TFS Azure DevOps. Unfortunately if you have deleted the user before checking his locks like me, you need to make him release the files that are cheked out to him. Of course you will not be able to reach him and ask for help.
So here is the solution for you.
1 - Get your backups. This is important. Some files may be gone. I have face this issue. Just do it now.
2 - You have to delete the workspace belongs to him.
3 - It is automatically unlocked.
4 - Succeded. Congrats.
How to delete the workspace in TFS DevOps?
1 - Open the Visual Studio Command Line: Tools > Command Line > Developer Command Prompt
2 - Write these (better copy-paste) tf workspaces /owner:* /computer:* /format:xml
3.1 - In the xml you may find
a. The name of the workspace, (DESKTOP-WORKSPACE_1)
b. GUID for the user (c60e9e21-9a7a-6a27-8ba5-7db078885f7a)
c. mail address for the user (mydear@colleague.com)
3.2 - If there is no xml then you dont have rights to do this operation. Go find someone to do this for you.
4 - So prepare this line in notepad editor.
tf workspace /delete DESKTOP-WORKSPACE_1;c60e9e21-9a7a-6a27-8ba5-7db078885f7a\mydear@colleague.com
5 - Paste the line into command prompt and press enter.
6 - It will ask Yes or No. Write Yes. :) Then it is completed.
This worked for me. I hope this takes also your headache.
I searched for these phrases and I hardly find a solution combining the ideas and comments. Maybe someday if I need this and can't remember the solution then I will search with the same phrases probably.
DevOps force unlock
DevOps unlock the files that are checked-ou by other users
devops how to delete users workspace
How to delete workspace owned by someone else.
tf workspace /delete
Yorumlar