views:

218

answers:

2

i'm working with TFS and i need to edit file localy without checking it out . another 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.

thanks,

A: 

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.

Thibault Falise
I did that b4 by removing the read-only but it doesn't work
Amr Elnashar
+2  A: 

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.

Chris Lively
It's the web.config file, and I'm working in a different database
Amr Elnashar
Then you should look into section replacement of config files. This can be kicked off whenever you execute the project. That way you don't have to worry about other peoples sections.
Chris Lively
could you give more explanation. and thanks for your help.
Amr Elnashar
@AmRoSH: try this http://blog.andreloker.de/post/2008/06/Keep-your-config-clean-with-external-config-files.aspx
ram
@Ram: Fantastic link for how to do this. @AmRoSH: Just don't check in your local copies of the config sections and you won't have to worry about stepping on each others toes.
Chris Lively