Mercurial - revert the uncommitted changes after did "hg update -C" -
i'm new mercurial. did hg status , saw files changed since last commit have m in front. tried hg update -c. there way can version of files m before did hg update -c? or pretty screwed? :( since hg update -c discards changes since last commit
unfortunately, it's right there in hg update:
options: -c --clean discard uncommitted changes (no backup) the proper workflow have been commit outstanding changes (which presumably create new head) , merge commit revisions wanted import.
if don't having commit half-baked set of changes, check out shelve extension, designed this: temporarily puts aside or of uncommitted changes, allowing run hg operations before bring them again. (shelve not distributed mercurial, think tortoisehg may include it).
Comments
Post a Comment