Partial git commit from eclipse (egit)

Say I have a file with 2 changes. How do I use egit to commit only one of them?

The command line version can be found in this question.


You can also follow "Git Partial Staging in Eclipse"

From the staging view, double-click on the file. A compare dialog will appear.

  • On the left are your current changes;
  • on the right is the currently staged work.
  • You can now copy changes from the left to the right, effectively staging parts of your file. In this case I will stage the correction to the method name.

    http://eclipsesource.com/blogs/wp-content/uploads/2014/06/Screen-Shot-2014-06-02-at-11.11.26-PM.png

    链接地址: http://www.djcxy.com/p/4184.html

    上一篇: 按块应用提交块

    下一篇: eclipse中的部分git提交(egit)