在TFS之后移动Projext文件夹 - 设置源控制 [英] Moving Projext folders after TFS - Source Control is setup

查看:74
本文介绍了在TFS之后移动Projext文件夹 - 设置源控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我对TFS和Source控件非常陌生。如果我能找到关于TFS-Source Control的常见基本书,我会买它。这是我的直接问题。回到TFS介绍之前,我创建了一个项目并将其放在
下的网络共享名称中。


First I am very new to TFS and Source control. If I could find a common sence basic book on TFS-Source Control I would buy it. Here is my immediate problem. Back before TFS was introduced I created a project and put it on a network share under the name \\Server1\programming\VBProjects\SSIS\ImportTraceDate_MCKDEV. There are several problems with this directory name that do not meet our current standards. So I want to change source directory to \\Server1\programming\2008Projects\SSIS\ImportTraceData\. Changing the directory in Visual Studios I can do, but then when I opened source control everything was gone. I managed to get it back by undoing the rename directory steps, but it was scary for awhile. I assumed the source lived on the TFS server once checked in. That a person could delete the original source if needed and be fine. It appears the original source is still tied to source control. When I check out a member for change I do not see it in my personal TFS directory and the properties show I am editing the original source. This leads to several questions about TFS and source control. Does this mean the source lives in two places? Am I changing the source for everyone even if its not checked in? Why when I check out items am I not editing it in my personal TFS directory \\Server1\personal\wburke\TFS? Would anyone opening this solution be looking at the original source? At times our company will move or rename shared servers, what happens then? Why would a person need to maintain the original source once it is checked in?   


解决方案

Hi Seeker of Wisdom,

Thank you for posting here.

First about TFS source control, you could start to learn by referring this document in MSDN library: https://www.visualstudio.com/en-us/docs/tfvc/overview. Actually, TFS has 2 version control model: TFVC and Git, it seems that you're using TFVC.

If some files you have already checked into TFS, all file are stored in database in TFS server. Look at the picture below, the Source location means the server path in TFS and the Local path is the client path at the current Workspace, it could be a UNC path or "C:\***\***". Now your problem is that you want to rename the Local path, I don't know how you do this in Visual Studio. From your description, you haven't check in the rename action and you have done the Undo, so don't worry it won't have an effect on other people. You're changing the files in your workspace.

What you should do now, find the folder and rename it File Explorer and create a new workspace, when map the workspace, choose the new UNC path.

learn more about what is a workspace.


这篇关于在TFS之后移动Projext文件夹 - 设置源控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆