惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
腾讯CDC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
F
Full Disclosure
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
Engineering at Meta
Engineering at Meta
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Threatpost
I
Intezer
V2EX - 技术
V2EX - 技术
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
小众软件
小众软件
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
N
News | PayPal Newsroom
MyScale Blog
MyScale Blog
AI
AI
Vercel News
Vercel News
Spread Privacy
Spread Privacy
美团技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
V
Vulnerabilities – Threatpost
Schneier on Security
Schneier on Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
Help Net Security
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
U
Unit 42
L
LangChain Blog
Recent Announcements
Recent Announcements

博客园 - Gardener

Windows7中让账户不在登录界面中显示 [转]中国联通、中国电信、中国移动的3G速度对比! [转]深度分析中国移动、中国联通、中国电信的3G胜算 [转]橘子版V880问题汇总及解决办法 [转]最新Android开发工具官方下载地址 配置登陆前ADSL自动拨号上网 【转】详细讲解SQL Server索引的性能问题 Visual Studio 2005 快捷键 傲游创始人:靠共享软件挣大钱不太现实 - Gardener - 博客园 Exchange07 SP1今日上市可免费下载 IT公司是怎样面试的? [转帖]和尚的故事新编 三大搜索(Google、Yahoo、Live)继续被涮?! 新版Windows Live SkyDrive Beta发布 ASP.NET中获取虚拟目录的物理路径 - Gardener - 博客园 深入了解“网上邻居”原理[转] 请不要做浮躁的人[转] 程序员谈程序人生[转] 一个优秀IT专家的成长历程---献给所有的颓废或即将颓废的人们[转]
TFS---Server端强行签入用户的独占签出!
Gardener · 2010-09-25 · via 博客园 - Gardener

背景: 在TFS使用过程中,发现某文件被UserA用户独占签出, 此时管理员要在TFSServer上强行撤销用户UserA的签出。

适用:无法联系到UserA,或者UserA的工作区已经不存在等情况, 基本上能在Server端上包治此类的通病!

    此段可忽略:不过TFS真真够难用的,以后大中小规模开发(基本上50人以下的并行开发吧,或者项目设计模块复杂度较小的,总之,只要不是非用TFS不可的巨型项目。。hehe)坚决不要用TFS了。。VSS或者SVN都比这个大而重的烂牛刀好用。 咱们这个民间作坊、江湖术士,只要能用、好用就行啊,太复杂的东西搞得实在很无聊!好了言归正传吧...

步骤

1、可以在TFSServer端上,用管理员权限用户登录后,在VS的源代码管理界面上首先针对被人签出的源码项,进行下“签出”类的操作,看一下“视图”-->“输出”窗口中的提示,以确定该签出项所属的“工作区”“签出用户”以及“路径”。如图:

2、然后在TFSServer端,进入CMD,打开命令行窗口, 然后进入目录:

       C:\Program Files\Microsoft Visual Studio 8\Common7\IDE 下

     此处有tf.exe用于TFS的命令行操作。

     输入: tf workspaces /owner:UserA /server:ServerName /computer:*

            此命令是为了查看Server端记录的UserA用户的操作状况。

              注: ServerName: 可以用ipconfig /all 看一下自己Server的名称

      输出如下图:具体信息,可根据实际情况进行判断处理。

3、针对上述输出,可以使用以下命令,将UserA用户的当前工作区进行清楚处理,其该工作区中的签出等,自然随之烟消云散辽。。。

      输入:tf workspace /delete 工作区名称;UserA /s:http://ServerIP:8080

     操作及输出如图:

4、OK

注意:以上办法使用效果好、操作便捷,但是其后遗症无法清晰了解,若参照此办法出现种种问题及疑难杂症等,后果自负!

posted on 2010-09-25 14:54  Gardener  阅读(657)  评论()    收藏  举报