Just hg add
the files.
I don't know why you're getting some many answers that modify the working directory. If you've accidentally marked some files for removal you can undo it with add.
ry4an@four:~/hgtest$ hg status --all
M another_file
C a_file
ry4an@four:~/hgtest$ hg remove --after --force *
ry4an@four:~/hgtest$ hg status --all
R a_file
R another_file
ry4an@four:~/hgtest$ hg add *
ry4an@four:~/hgtest$ hg status --all
M another_file
C a_file
That said, don't use --force
with hg remove
or ever really. Also try to get in the habit of using hg forget
instead of hg remove --after
,
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…