24

I am using EGits with Eclipse and running into some issues.

I have one change from head; I have made one new class.

When I right click on this class and click "push", the following dialog shows and I cannot get past it :

Dialog box with "Committing is not posssible. There are no staged files".

Anyway, I need to push this file because I can't commit in real life, and now I cannot commit in Eclipse either and it's taking it's toll mentally.

Thanks.

PS I have googled this extensively looking for an easy fix (like a "stage" button) and found nothing.

Simon Kiely
  • 5,880
  • 28
  • 94
  • 180

2 Answers2

20

using EGit: Right click it and navigate to Team => Add.

after then Push the code

Before pushing the file add that new file on git using terminal

git add after then

git push origin branch

Anil Kumar
  • 945
  • 7
  • 16
0

OR you need to add to Index first before committing it.

bosari
  • 1,922
  • 1
  • 19
  • 38