I just upgraded to Eclipse Neon from Mars. Earlier I could just select "Commit" from the "Team" menu, and the dialog would provide checkboxes for the files I wanted to stage. I could easily hit "select all" and all files would be staged. In fact, the files already in the repository would already be checked, if I remember correctly.
Now Eclipse Neon doesn't pop up a dialog, but shows a "Git Staging" view tab. The modified files are listed as "Unstaged Changes". Yes, I'm familiar with the Git workflow, but this seems a step backwards for the Eclipse UI. How do I "stage" the file? Do I have to select them and drag-and-drop them to "Staged Changes"? Do I have to right click on them and add them to the Index?
Whatever happens, it won't let me just hit the "Commit" button---it will complain that there are no unstaged files. Am I missing some way to commit that was as easy as it was in Eclipse Mars, with auto-staging of files or at least a "stage all" button?
Select YourProject --> Team --> Commit..., A Git Staging console will open.
Now follow below steps for Commit or Commit and Push changes...
There are two ways to add files in Staged Changes:
Enter the commit message.
For the time being I'm disabling the Staging View in Windows > Preferences> Team > Git > Committing, opting to use the old-fashioned Commit Dialog (the one from Eclipse Mars) instead. I don't have time to muck around with extra listbox selections, mouse clicks, and context menu selections just to commit my code.
I hope someone else comes up with a better answer. The Git Staging View was interesting... but not if it slows me down.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With