I am using Mercurial with Eclipse. I made a commit and I commited some files which shuld not been commited.

Do you know if there is a possiblity to delete those files from the commit.

Thank you.

有帮助吗?

解决方案

rollback (if it's the most recent commit) or strip (if it's older) would do it for you. This post has more details on these commands. To do it with MercurialEclipse, right click on your project in Eclipse and do Team-->Undo-->Rollback or Team-->Undo-->Strip.

If those aren't options, you could just remove the files in question and then commit that as a separate changeset. That would, of course, preserve the fact that those files were once under Mercurial control. If that is not desirable, this page lists some more options. If you go the MQ route, the workflow listed there can be done in MercurialEclipse via the "Mercurial Patch Queue" view.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top