Only Bolivian Here
Only Bolivian Here

Reputation: 36723

How can I completely remove something from a Mercurial repository?

If you see here, you'll see that I have:

CheeryTomatoe.Examples  <--- I want to remove this.         
CherryTomatoe           
CherryTomatoe.Examples  

https://bitbucket.org/sergiotapia/cherrytomato

How can I completely remove this from my repository? What command can I run?

Upvotes: 2

Views: 1282

Answers (2)

VonC
VonC

Reputation: 1323065

In theory, you can edit the history (provided nobody has yet cloned your public repo), as described in:

However, that is not the best way to work with Mercurial, so what you did in your third commit is better: hg rename:
See Hg book: "renaming file":

When you use the hg rename command, Mercurial makes a copy of each source file, then deletes it and marks the file as removed.

Upvotes: 3

sylvanaar
sylvanaar

Reputation: 8216

It is your initial commit.

Delete the repository and start over.

Upvotes: 3

Related Questions