git says untracked content and cant add it to repo

git

Solution

It looks to me like "predis" is a submodule. Hence, your main repo is not tracking directly that submodule.

What you actually "add" is a commit pointer of that submodule. Now, if you want to actually commit/push the content of that submodule then you will have to go to that 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

Now, when you go to your main project directory

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

You should see a clean status (nothing to commit).

Problem

There is a folder that shows as `modified: predis (modified content)` when I do `git status`. After doing `git add .`, it still shows as `(untracked content)`. Any ideas of what I'm doing wrong or how I can add this folder?

Original source