Reputation: 3229
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.
Upvotes: 10
Views: 8112
Reputation: 62218
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.
Upvotes: 10