Hi,
Can you please tell me how can I remove change I made locally?
In git , I can do git checkout -- aFile.cpp
, how can I do the same thing for 'hg'?
Thank you.
Hi,
Can you please tell me how can I remove change I made locally?
In git , I can do git checkout -- aFile.cpp
, how can I do the same thing for 'hg'?
Thank you.
hg revert <filename>
More detail on available hg
commands is available on the man page.
(Note that this is not the same as git revert
- git's revert command is for reverting commits, hg's revert command is for reverting local changes. Also, the command you should really be using to remove local changes in git is actually git reset
, not checkout.)