免责声明:我知道开发人员的辛勤工作,并且我不会拒绝答案,因为我们要做的就是尝试彼此加强
在我的应用程序中进行了一些重大修改之后,我已经执行了以下命令:
git status
git add .
git commit -m "deploying live with heroku"
但是它仍然没有提交,因为我看到很多未跟踪的文件是红色的
在发出该提交后,我也看到了这一点。
On branch master
Changes not staged for commit:
..............< all these modules here
Untracked files:
......................
no changes added to commit
答案 0 :(得分:1)
尝试以下命令将未跟踪和修改的文件添加到登台索引。
git add -A;
答案 1 :(得分:-3)
尝试这些命令将起作用。 通过以下命令将文件添加到暂存中:$ git add --a
$ git status -s
$ git add --a
git commit -m "Your Commit Message"
git push -u origin master