supereagle / experiences

Summary of practical experience in work.
2 stars 0 forks source link

git add fatal: Pathspec is in submodule #36

Closed supereagle closed 7 years ago

supereagle commented 7 years ago

Problem

The directory is added, but the content of the directory is not added. Any changes of the content in the directory will not be listed by git status, and these changes will not be added by git add.

Solution

 git rm --cached directory
 git add directory

Reference