Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add an existing folder to TFS source control

Is there any way I can add an existing folder to source control in TFS? I have created a new folder outside of TFS, just in the file system, and would like to add it to source control, but the only apparent way to do this is the ridiculous workaround of renaming my new folder to a temp name, then creating the new folder in Source Control Explorer, then adding the items from my renamed, original new folder.

like image 931
ProfK Avatar asked Jan 12 '11 14:01

ProfK


People also ask

How do I add a folder to TFS source control?

Just select the folder after selecting the "Add Items to Folder..." option. You can get to this is from the context menu you get when right clicking on a folder (either the name or the actual folder itself). The next page of the wizard will present you with lists of included and excluded files.

How do I add a folder to Azure repository?

In Source Control Explorer, navigate to the folder where you want to add the files or folders. Choose the link next to Local Path to open the target folder in Windows Explorer (File Explorer in Windows 8). Move your files and folders into this folder.

How do I map a directory in TFS?

From Visual Studio, go to the Team Explorer Connect page (Keyboard: Ctrl + 0, C) and then connect to the project. (If the project you want to open is not listed, choose Select Projects and then connect to the project.) Map the project to a folder on your dev machine. Map the workspace and get your code.


1 Answers

Just select the folder after selecting the "Add Items to Folder..." option. You can get to this is from the context menu you get when right clicking on a folder (either the name or the actual folder itself).

The next page of the wizard will present you with lists of included and excluded files. Select the files you want and then hit "Finish".

Then submit the pending changes.

like image 134
ChrisF Avatar answered Oct 08 '22 07:10

ChrisF