Malt
Malt

Reputation: 30335

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.

Upvotes: 17

Views: 3540

Answers (1)

VonC
VonC

Reputation: 1329712

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

Upvotes: 28

Related Questions