![Forrest logo](/images/logo.png)
hg-remove:tldr:07504
The command "hg remove --after" is a command used in the Mercurial version control system.
This command is used to schedule files for deletion in the repository during the next commit. The "--after" option is used to remove files that have already been deleted from the working directory.
When you run "hg remove", it marks the specified files for removal from the repository on the next commit. However, if you have manually deleted files from the working directory without using the "hg remove" command, those files still exist in the repository's history.
By running "hg remove --after", you instruct Mercurial to also remove any files from the repository that no longer exist in the working directory. This ensures that deleted files are completely removed from both the working directory and the repository's history in the next commit.