Undo “git add ”?

I mistakenly added files using the command “git add dir”. I have not yet run “git commit”. Is there a way to remove this dir and everything contained within it from the commit?

I have tried git reset dir, but it didn’t work. Apparently git reset file is the way to undo it. But I have so many files and so little time.

5 Answers
5

Leave a Comment