Pritish Kakodkar
Pritish Kakodkar

Reputation: 317

hg + remove bookmark and all changes

I would like to abandon all changes in my bookmark and delete the bookmark itself. I tried the instructions under: Mercurial - How to discard all local changes including to unversioned files? i.e hg --revert . In addition, I looked at Bookmarks where it says that the delete feature still leaves changed files. How do I go to a state where I can start afresh from the contents of the remote repository?

Upvotes: 1

Views: 520

Answers (1)

codekaizen
codekaizen

Reputation: 27419

A bookmark is separate from the changes in the changeset. You can modify or delete the bookmark, and it keeps the changeset untouched. A physical bookmark is a good analogy: you can move it from page to page or remove it completely without altering the book contents - it's just a pointer to a page.

If you have committed the changes already into a changeset, you want to either back them out or strip them.

If you just want to start from the remote, delete your repository and re-clone it.

Upvotes: 2

Related Questions