4.8. 小结
提交代码
至此,我们已完成本章的项目开发,接下来让我们切回到 Git 的主分支上。
$ git checkout master
这时我们运行 Git 的状态检查命令,会发现新增了一个 public/css
文件夹。这是为什么呢?
$ git status
git status
On branch master
Your branch is up-to-date with 'origin/master'.
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: public/css/app.css
Untracked files:
(use "git add <file>..." to include in what will be committed)
public/mix-manifest.json
no changes added to commit (use "git add" and/or "git commit -a")
原因是我们在前面使用了 npm run watch-poll
来监听文件的更改并持续编译,因此当我们切回到主分支上时,app.scss
文件会回到一开始在主分支上未经过任何修改的状态,这时 app...