how can I reset my local repository, to the state of remote one?
I have commited local changes (didn't push).
I want to delete all the differencies.
hg commit: save your changes in the current repository. hg log: see all changes in your repository. hg pull: get all changes from another repository into the current one. hg push: get all changes from your repository into another one.
The hg command provides a command line interface to the Mercurial system.
There are several options:
hg clone -r <last remote changeset> <local_repo_old> <local_repo_new>
).hg strip
command from the mq extension to remove the changesets from your local repoNOTE: When trying options 2 or 3, you can use the hg outgoing
command to see which changesets have not yet been pushed to the remote repo.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With