Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you "re-include" a file that was excluded from source control?

I excluded a file from source control a week ago, and I would like to re-include it into my VS 2010 project.

I can't find a single way to do this, I am completely stumped. I deleted the file, checked everything in, then re-added, checked that in, but I still get the red symbol next to the file saying it is excluded from source control.

Ironically, when I right-click the file, it gives me the option to Exclude it, but not to include again.

Help!

like image 323
Mark Kadlec Avatar asked Jun 29 '10 18:06

Mark Kadlec


People also ask

How do I add excluded files in Intellij?

For a directory: select this option to exclude from compilation all the corresponding subdirectories. Use this icon or shortcut to add a file or directory to the list. Select the file or directory in the dialog that opens. Use this icon or shortcut to remove the selected item or items from the list.

How do I show excluded folders in Visual Studio?

Right click one of the files and select " Exclude from project", and the file disappears from the project. 3. Click "Show All Files" button on top of Solution Explorer to show all files, but the excluded file is not shown at all.

How do I insert a Tfignore file?

If you have a local workspace, you can add a new file and in the bottom of the pending changes window you have the changes you can 'promote'. In that window, you can right click the files to automatically add them to a . tfignore file that will be created for you.


1 Answers

Steps to follow:

  1. Select the appropriate file to reinclude.

  2. Go to File -> Source Control -> Uncheck 'Exclude -FileName- from Source Control'.

Greetz

like image 159
C. Reijman Avatar answered Sep 22 '22 10:09

C. Reijman