Skip to content

🚩 Create .gitignore, and remove node_modules folder #3

Open

Description

@ummahusla

It's not really a good practice to keep no modules in the git repository.

  • Create gitignore
  • Remove node_modules

Activity

  1. Rushan-Chen commented on Dec 3, 2017

    @Rushan-Chen

    About how to create .gitignore

    You can reference the .gitignore template: Node.gitignore
    'node_modules/' is added in this '.gitignore'

    About how to remove node_modules

    git rm -r --cached node_modules
    git commit -m 'Remove the now ignored directory node_modules'
    git push origin master
    Then check your repository.

  2. aemal commented on Apr 13, 2018

    @aemal

    @StephenGrider can you plz implement this issue as I just took your course and love to use this as a boilerplate for most of my students?

  3. ummahusla commented on Apr 16, 2018

    @ummahusla
    Author

    @aemal Stephen has great courses, but lack of response on his repositories is a bit frustrating.

  4. hassan-kassim commented on Oct 26, 2018

    @hassan-kassim
    • create a .gitignore file by using cmd git add .gitignore
    • add the /node_modules inside the .gitignore file
    • git push origin master

    check the repository with each push.

  5. mussacharles60 commented on Apr 26, 2021

    @mussacharles60

    Add node_modules/ to your .gitignore file

  6. ganeshXb commented on Jun 16, 2021

    @ganeshXb

    How to Create .gitignore and add node_modules to it

    • Create a .gitignore file (if it doesn't exist) using: touch .gitignore
    • Add node_modules in .gitignore by adding "node_modules/" in .gitignore OR
    • simply run the following: echo node_modules >> .gitignore
      then add, commit and push to the repository.

    How to remove node_modules from your repo after adding it to .gitignore

    • git rm -r --cached node_modules
    • git commit -m 'Remove node_modules'
    • git push origin master
  7. jsteave commented on May 30, 2022

    @jsteave

    I am also here for the solution of this issue with this #gitignore file To Remove node_modules Folder

  8. joaoavila1987 commented on Sep 29, 2022

    @joaoavila1987

    pra min funcionou bem. obrigado

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions