美文网首页
Remove untracked files, stash or

Remove untracked files, stash or

作者: 天渺工作室 | 来源:发表于2022-02-01 02:07 被阅读0次

在react 项目中暴露webpack 配置文件的时候,执行

yarn run eject

报错

Remove untracked files, stash or commit any changes, and try again.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
微信截图_20220201020520.png

其实就是因为工程默认的git 导致的(git配置文件)

微信截图_20220201020521.png

在默认执行

git status

git add . // 添加全部

git commit -m "first" //首次commit 一次

// 就ok了
image.gif

相关文章

网友评论

      本文标题:Remove untracked files, stash or

      本文链接:https://www.haomeiwen.com/subject/qakkkrtx.html