开发者

How can I completely remove something from a Mercurial repository?

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

Cheer开发者_StackOverflow中文版yTomatoe.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?


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

  • Mercurial FAQ 4.14 and 4.15
  • Mercurial Wiki "Editing the History"

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.


It is your initial commit.

Delete the repository and start over.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜