search

Home  >  Q&A  >  body text

I ran git add . and found a folder inside that I didn’t want to commit. How do I remove the add directory?

I used git add in the development directory. I found another node_modules directory inside. How to remove this directory add index library

迷茫迷茫2839 days ago1179

reply all(3)I'll reply

  • PHPz

    PHPz2017-05-02 09:48:33

    git reset node_modules

    reply
    0
  • 怪我咯

    怪我咯2017-05-02 09:48:33

    git reset

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-02 09:48:33

    Use the following command

    git reset HEAD node_modules
    

    For more tips, please refer to this: Common tips for Git learning notes

    reply
    0
  • Cancelreply