Answer the question
In order to leave comments, you need to log in
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)
Answer the question
In order to leave comments, you need to log in
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.
Maybe it's empty? Add an empty .gitkeep file there or something like that and everything will be committed.
It looks like this folder is a submodule. How to work with submodules, read separately.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question