How to remove a folder from VS2008 Source Control, keeping the local folder intact?
I have a working folder that's synced to a team server. I was wondering if there is a way to remove some of the subfolders (i.e., sto开发者_StackOverflow中文版p syncing them, and make them invisible to others), without actually deleting them on the local drive?
I think "Exclude from project" (by right clicking the folder/file in solution explorer) is what might help you.
Most source control providers do not delete the folders when they are removed from source control. There are exceptions but I don't believe this is the standard behavior. If it is though you can do the following to work around the problem
- From explorer rename the directory and add the .backup extension
- Remove the folder from source code control. Since it's renamed it can't be deleted because source control can't find it
- Rename the folder back to the original name.
精彩评论