开发者

How to undo `hg pull`?

开发者 https://www.devze.com 2023-01-14 11:49 出处:网络
I accidentally did a hg pull 开发者_如何学Pythonand it created a branch in my local repo. What is the simplest to undo that and get my local repo back to previous state?hg rollback but beware the cav

I accidentally did a hg pull 开发者_如何学Pythonand it created a branch in my local repo.

What is the simplest to undo that and get my local repo back to previous state?


hg rollback but beware the caveats:

This command should be used with care. There is only one level of rollback, and there is no way to undo a rollback. It will also restore the dirstate at the time of the last transaction, losing any dirstate changes since that time. This command does not alter the working directory.
...

0

精彩评论

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