What does git Changes not staged for commit mean

964    Asked by AlisonKelly in Devops , Asked on Apr 20, 2021

I have a very basic github setup with a readme, a directory, and another directory inside it with an html file. On github, I can only view the readme and the first folder but none of its contents, and I am getting this message “no changes added to commit” as shown below:

git add *

git status

On branch master

Changes not staged for commit:

(use "git add ..." to update what will be committed)

(use "git checkout -- ..." to discard changes in working directory)

(commit or discard the untracked or modified content in submodules) 

modified:   week1 (modified content)

no changes added to commit (use "git add" and/or "git commit -a")

I feel like if I am adding all to be staged that it should not be an issue. Any help?

Answered by Alison Kelly

 You can try the below mentioned command:

cd week1
git status

the above command is used to see the changes that are made to the submodule can be displayed and

  git add -A.

Then add changes from all tracked and untracked files. Now hope all the changes are staged.



Your Answer

Interviews

Parent Categories