暴漏配置文件报错npm run eject

171 阅读1分钟

image.png This git repository has untracked files or uncommitted changes:
翻译为:此 git 存储库有未跟踪的文件或未提交的更改:src/App.js

Remove untracked files, stash or commit any changes, and try again.
翻译为:删除未跟踪的文件,存储或提交任何更改,然后重试。

1.使用GIT命令, 将未跟踪的文件提交到暂存区:git add .
复习:git add * 会将.gitgnore的忽略名单文件也提交上去

2.再次使用GIT命令将暂存区代码提交到版本库中:git commit -m "init"
复习:git commit可以直接提交,添加-m是为了添加备注

3.再次运行 npm run reject命令

image.png

复习git仓库使用流程:[菜鸟教程YYDS](Git 工作区、暂存区和版本库 | 菜鸟教程 (runoob.com)) 1090617-20181008211557402-232838726.png