I tried to commit to GitHub, did git add. And checked with git status, but it was not reflected well with "Changes not staged for commit:"
python
$ git add .
$ git status
On branch login
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: app/controllers/users_controller.rb
modified: db/mysql/volumes/ib_logfile0
modified: db/mysql/volumes/ibdata1
modified: db/mysql/volumes/ibtmp1
modified: db/mysql/volumes/myapp_test/users.ibd
modified: db/mysql/volumes/mysql/innodb_index_stats.ibd
modified: db/mysql/volumes/mysql/innodb_table_stats.ibd
modified: spec/requests/users_signup_spec.rb
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)
modified: db/mysql/volumes/ibdata1
In the case of this error, it is said that "db / mysql / volumes / ibdata1" is not staged well, so specify the file name and execute the git add command.
python
$ git add db/mysql/volumes/ibdata1
$ git status
On branch login
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: app/controllers/users_controller.rb
modified: db/mysql/volumes/ib_logfile0
modified: db/mysql/volumes/ibdata1
modified: db/mysql/volumes/ibtmp1
modified: db/mysql/volumes/myapp_test/users.ibd
modified: db/mysql/volumes/mysql/innodb_index_stats.ibd
modified: db/mysql/volumes/mysql/innodb_table_stats.ibd
modified: spec/requests/users_signup_spec.rb
It was reflected properly!
I commit frequently, so if an error occurs, I want to deal with it without rushing.