Git selective commit

I am using eGit plugin with eclipse.

I have made changes to 7 files locally and then figured out no changes needed for one of the files – so I have to only commit 6 files and revert the changes on the 7th file.

  • Hierarchy for developing several unrelated util packages
  • Packfile is truncated error while cloning Git repository
  • Remove ORIG_HEAD and FETCH_HEAD from history view in Eclipse
  • How to add eclipse project to existing git repo?
  • Cannot commit android “gen” folder to Git
  • EGit refactor rename project NOT renames git working tree folder
  • How can I accomplish this using eGit?

    It appears to be that using eGit, I can either commit all or reset all. But I want to only commit selective files and revert the changes on other files.

  • How to squash my changes into a single result commit and pick into master branch?
  • Cannot add a new package on julia
  • git create new branch from a specific branch history and commit
  • Turn off line wrapping when running git grep
  • Selective merge with Git?
  • Why doesn't git recognize previously checked in renames when merging — does merge direction matter?
  • One Solution collect form web for “Git selective commit”

    In Eclipse, right-click the file you wish to revert, hover over “Replace With…” and select “Latest from HEAD”. Then commit everything else as you would normally.

    Git Baby is a git and github fan, let's start git clone.