S
S
Spirit Absolute2014-09-15 18:19:18
git
Spirit Absolute, 2014-09-15 18:19:18

Why is the folder not being committed to git?

Hi all! Tell me why the folder is not committed to git using the git add command.
I have added the rbac module in the yii2 project common/modules/rbac.
And the directory does not want to be fixed.

[email protected]:~/public_html/yii$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

  modified:   common/config/main.php
  new file:   common/modules/rbac

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)
  (commit or discard the untracked or modified content in submodules)

  modified:   common/modules/rbac (modified content)

What does (modified content) and the untracked mean?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
T
toxa82, 2014-09-16
@SpiritAbsolute

This is how changes are marked in the submodule of the project, i.e. one repository uses another, go to that folder and do git add and git commit there.

S
Sergey, 2014-09-15
Protko @Fesor

read about git add.

V
vdem, 2014-09-15
@vdem

Maybe it's empty? Add an empty .gitkeep file there or something like that and everything will be committed.

P
Power, 2014-09-15
@Power

It looks like this folder is a submodule. How to work with submodules, read separately.

S
Spirit Absolute, 2014-09-16
@SpiritAbsolute

Thanks everyone for the replies, got it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question