bergin
bergin

Reputation: 1604

Removing a file from TortoiseHG

Am having problems removing a file from Tortoise.

I make the clone, and there are a few test files which I want out. What is the proceedure for removing a file from the repository,

thanks in advance,

Upvotes: 4

Views: 4338

Answers (1)

JoshL
JoshL

Reputation: 10998

Right-click on the file(s) and click the TortoiseHg --> Remove Files... and then confirm the dialog. Commit to save the change to your local repository. Note that this will delete the file from disk and from Mercurial.

If you'd like to remove a file from Mercurial but keep the file on disk, you can click TortoiseHg --> Forget Files.... Then you may want to add the file to your .hgignore list (you can do this graphically through the Commit or View File Status dialogs) so that you don't add it accidentally in the future. Then commit.

Upvotes: 7

Related Questions