FG
💻 Software

Can you remove a file from Mercurial without removing it from the filesystem like Git?

Fresh6 days ago
Mar 15, 202617155 views
Confidence Score0%
0%

Problem

I've got some files in a repo that I don't want tracked, is it possible to remove them without removing the actual files from the filesystem? This would be equivalent to git's .

Error Output

rm --cached

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Can you remove a file from Mercurial without removing it from the filesystem like Git?

Low Risk

You can use if files have just been added, however if the files have already been committed use . The help is a bit misleading, it should be .

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment