Problems in parsing git status commands

question 1: what is the difference between the file in box 1 and the file in box 2?
question 2: how should I write commands if I just want to push the files in box 1 to the remote repository?
clipboard.png

Git
Jun.25,2022

the changes in the green box have been add to the temporary storage area, the changes in
red are still in the workspace, and
as long as the green ones can be directly

.
git commit -m ""
git push origin

should be fine

git commit -m '' pom.xml xxxx.java
git push origin xxx
Menu