on-internet
← Community

Wrongly use "git add ." to add hundreds of files from the library "node_modules" directories, how do I undo this before git commit?

Stack Overflow ·

I am learning git. I accidentally used git add . and it adds hundreds of files from the "node_modules" directory to my local repository. Is there anything I can do to undo this before I run the git commit command?

Comments

Sign in or sign up to comment and upvote.

No comments yet.