Skip to content

Git add . staging ganache node modules #1668

Answered by cromewar
zbilly18 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @zbilly18
Well this is because you are also adding the node_modules folder, which contains hundreds if not thousands of dependencies for the project to run (if you have installed something with npm).
So, is as easiest as go to .gitignore file and add node_modules/ to it, and now git will ignore it.

Note: if you don't have a node_modules on your project file, you might have it on a parent folder upside the hierarchy.

Cheers.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cromewar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants