Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 228
Hossein Margani Avatar asked Nov 14 '09 06:11

Hossein Margani


1 Answers

if you want to stop tracking files, but leave them in working directory, use hg forget. Help also says you can achieve the same effect by using hg remove -Af.

I'm not sure what do you mean by «data source», but neither of those will remove the files from repository itself, because they are already a part of your history, and thus their previous versions will remain there. Forgetting them will only prevent your history from bloating even further with newer versions of those build artifacts.

like image 163
d.Candela Avatar answered Sep 30 '22 02:09

d.Candela