0

When i try to commit it displays the following,

On branch gh-pages Untracked files: node_modules/max-buffer-exceeded-error/

nothing added to commit but untracked files present

3
  • You should not push node_modules into your repository. Use .gitignore. Commented Jun 7, 2017 at 11:44
  • Thanks Hitmands i am new to github,how to use .gitignore? Commented Jun 7, 2017 at 11:51
  • If you are also new to git and version control softwares I suggest you to have a look at https://git-scm.com/doc, just few chapters and you'll learn about ignoring files, branching, committing, pushing, ecc. Commented Jun 7, 2017 at 11:53

2 Answers 2

1

You should never commit node_modules to your repo. Create, if you not already have, a .gitignore file in the root of your project, and add node_modules/

Sign up to request clarification or add additional context in comments.

2 Comments

How to add node_modules?
just put it on a newline in the file. Search for .gitignore templates
0

I think you added node_modules folder. Run

git rm node_modules

to remove them from your repository.

After that operation, add node_modules to the .gitignore file.

Finally commit and push.

2 Comments

Thanks-Should i include .gitignore when creating repository?
Absolutely yes!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.