Git commit not possible. There are no staged files
54,484
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
Related videos on Youtube
Author by
Simon Kiely
Masters machine learning student who doesn't know Python. At all.
Updated on September 22, 2020Comments
-
Simon Kiely over 3 years
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 :
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.
-
Tim Biegeleisen almost 8 yearsYou need to find the Git staging view and then add the modified file and new file to the index. It appears that eGit is not doing this for you automatically. Or, as a backup, you can just
git add
these files from the Git Bash. -
Gauthaman Sahadevan almost 8 yearsRight click on that file and select
Add to Index
-
m0skit0 almost 8 years"I can't commit in real life" You definitely need more commitment then.
-
nikolai.serdiuk over 7 years"Git staging view and then add the modified file and new file to the index" - this helped me
-