Git says no traces of content and cannot add it to the repo

There is a folder that appears as modified: predis (modified content)when I do git status.

After execution, git add .it is still displayed as (untracked content).

Any ideas on what I'm doing wrong or how can I add this folder?

+4
source share
2 answers

It seems to me that "predis" is a submodule . Therefore, your main repo does not directly track this submodule.

What you are actually β€œadding” is a pointer to fixing this submodule. Now, if you want to actually commit / click the contents of this submodule, you will have to go to this directory

$cd predis
$git status #this will show you the list of modified files
$git add [whatever you want to add]
$git commit -m "your message"
$git push # where? I don't know your project specifications

,

$cd ..
$git add predis
$git commit
$git push
$git status

( ).

+6

git, , .git / .gitignore , .git predis, predis .gitignore.

0

All Articles