Deleted some files that are versioned by Mercurial, how can I delete them?

I deleted several files on my local file system that I no longer use, and I'm just rubbish. Unfortunately, they are tracked by version control (Mercurial). Now I see a big red color! saying that it is not synchronized due to missing files. How can I tell Mercurial that it is normal to delete these files without returning all of them and without deleting them separately?

+4
source share
1 answer

Or tell him to forget these files:

hg forget XYZ hg commit ... 

Or use the addremove or addremove command to commit:

 hg addremove Hg commit ... 

or

 hg commit --addremove ... 

Using this command, you can find additional information about these commands:

 hg help forget hg help commit 
+7
source

Source: https://habr.com/ru/post/1346829/


All Articles