question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve untracked files message during eject

See original GitHub issue
> react-scripts eject

? Are you sure you want to eject? This action is permanent. Yes
This git repository has untracked files or uncommitted changes:

  ?? .gitignore,  ?? app.js,  ?? bee/,  ?? package-lock.json,  ?? package.json,  ?? views/

Remove untracked files, stash or commit any changes, and try again.

npm version is 5.0.3

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

24reactions
gaearoncommented, Jul 15, 2017

Please follow the recommendation in the message.

Remove untracked files, stash or commit any changes, and try again.

For example you can run

git add .
git commit -am "Save before ejecting"

and then try again.

12reactions
Kobzolcommented, Nov 11, 2017

This should really be overridable… I have a repo with several projects combined and ejecting doesn’t affect all of them, it’s tedious that you have to manually remove the untracked files even though you know that the ejection won’t collide with them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to git clean untracked files example - TheServerSide.com
Run 'git clean -f' to force untracked file deletion;; Use 'git clean -f -d' to remove untracked directories;; Use 'git clean -f -x'...
Read more >
How to Properly Remove Untracked Files With Git - CloudBees
In this post, learn how to remove untracked files with Git. We'll begin with a brief explanation followed by examples and best practices....
Read more >
Error with run "npm run eject". Error 'Remove untracked files ...
This says in the message that you have untracked files that means that they are not being monitored by your VCS. Hence add...
Read more >
cleaning up untracked files - Git Ready
That command would clean up files listed under the project's .gitignore file as well as removing other files and directories that aren't ...
Read more >
How to Remove Untracked Files in Git - Linuxize
The files in the Git working directory can be either tracked or untracked. Tracked files are the ones that have been added and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found