Guest User

Untitled

a guest
Aug 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. # How to remove node_modules
  2.  
  3. 1. Create a .gitignore file in the git repository if it does not contain one
  4.  
  5. `touch .gitignore`
  6. 2. Open up the .gitignore and add the following line to the file
  7.  
  8. node_modules
  9. 3. Remove the node_modules folder from the git repository
  10.  
  11. `git rm -r --cached node_modules`
  12. 4. Commit the git repository without the node modules folder
  13.  
  14. `git commit -m "Removed node_module folder"`
  15. 5. Push the repository to github
  16.  
  17. `git push origin master`
  18.  
  19. After all of that, you should also add the gitignore and commit it to the repository
  20.  
  21. `git add .gitignore`
  22.  
  23. `git commit -m "Updated the .gitignore file`
  24.  
  25. `git push origin master`
Add Comment
Please, Sign In to add comment