开发者

Team Foundation Server How to Edit file without checking it out

i'm working with TFS and i need to edit file localy without checking it out . anothe开发者_如何学Gor case if some one checked in the file and i need to change my locally copy.

what should I do ? in Visual source safe we can do that by removing the read only check on the file.


Ok, this is relatively easy in VS2010, and quite normal. I mean the locking model of source control is obsolete anyway.

In vs2010, click Tools -> Options -> Source Control -> Environment and select Allow checked-in items to be edited. This should stop the TF client from marking files as read-only.

Also you may have to change the Editing drop-down in Source Control -> Environment to Do nothing.


Well.. You can certainly unmark the file as read only and edit it in something other than visual studio. Or, you can still use visual studio, but not edit it when the solution it's a part of is opened..

Quite frankly, I'd look into other options with regards to why 1. that file needs to be in source control. 2. If it does need to be in source control, why does your copy need to be different.


Just unset the read-only flag on the file locally.

You may have some issues later when try to do a "Get Latest" operation, which will warn you about a locally writeable file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜