Search code examples
fileversion-controlmercurialtortoisehg

Removing a file from TortoiseHG data source


I am using TortoiseHG for source code control in Windows, I forgot to edit the ".hgignor" file, and now I have a huge folder ".hg" which I know it's because of DLL and EXE and PDB files which I do not need them. Now changing the ignor file does not remove those files.

What should I do for deleting these files completely from my TortoiseHg data source?


Solution

  • You can use the hg remove command to remove files in your repository. If you are using TortoiseHG, you can right click on the file and go: TortoiseHG -> Remove File.

    Check out the "How to stop tracking a file" section Here.