TFS / 合并错过的签到
是的,这是 Doh 之一!该死!我搬起石头砸自己的脚。我在大型团队中没有太多使用 TFS 的经验,但我面临着这个问题。
在过渡到新设备的过程中,开发人员忘记签入一些代码。新笔记本电脑上的工作进行了几周,然后才发现之前的工作没有签入。发生了多次签入。
我已经从旧笔记本电脑中恢复了文件,并将它们放在我当前的笔记本电脑上。合并这些变化的最佳方式是什么?我是否要创建一个分支,合并这些更改,然后重新加入该分支?
是否有一本“食谱”详细说明了面对各种情况时应该采取的措施?
我们正在使用 TFS 2010。
提前致谢...
Yes this is one of the Doh! Damn! I shot myself in the foot. I don't have a lot of experience with TFS in large teams, but I'm facing this issue.
During a transition to new equipment, a developer forgot to check-in some code. Work proceeded on the new laptop for several weeks before noticing that the previous work was not checked in. Mutliple check-in have occured.
I have recovered the files from the old laptop, and have them on my current laptop. What is the best way to merge in these changes? Do I create a branch, merge in these changes, and then rejoin the branch?
Is there a "cookbook" out there that details what should happen when faced with various situations?
We are using TFS 2010.
Thanks in advance...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在这里创建一个分支可能比这种一次性情况所需的重量要重一些。如果是我,我会这样做:
Wworkspacename;所有者名称
。)如果用户删除了他们的工作区,您可以根据他们所在的变更集编号或他们工作的日期来获取。tfpt online
。这将根据服务器检查本地文件系统并确定进行了哪些更改。您可能希望检查这些选项,特别是/diff
标志(对文件执行 MD5,而不是简单地检查只读位)、/deletes
和>/adds
标志,分别检测已删除和添加文件。Creating a branch here is probably a little bit heavier-weight than what you need for this one-off situation. If it were me, I would do this:
Wworkspacename;owner name
.) If the user deleted their workspace, you can get based on the changeset number they were at, or based on the date they were working at.tfpt online
from the Team Foundation Server Power Tools. This will examine the local filesystem against the server and determine what changes were made. You may wish to examine the options, notably the/diff
flags (which performs MD5s on the file instead of simply examining the readonly bit), and the/deletes
and/adds
flags, which detect deleted and add files, respectively.您可以按照以下顺序进行尝试:
那应该可以完成工作。
You can follow this sequence to try out:
That should do the job.