Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add node_modules to .gitignore file to avoid push it to github #63

Open
SergeyBondar93 opened this issue May 23, 2023 · 3 comments
Open

Comments

@SergeyBondar93
Copy link

No description provided.

@nickezekias
Copy link

Hello Sergey! I was about to open the same Issue, but glad you already did.
Please dear maintainers this is a pretty relevant issue, and one very easy to fix, so please fix it.
I can also help by creating a PR with a simple solution for this

@nickezekias
Copy link

Went ahead and created a PR anyways:
#108

All those new here (freshly forking the repo to skills network IDE to complete the Hands-on Lab) who haven't run npm install could first:

  1. Open .gitignore file and add node_modules at the end of the line

  2. Commit and push this to your repository (git add . - git commit -m "add node_modules to .gitignore" - git push -u origin main)

  3. To push to your repo you would be asked to authenticate first, so create a personal access token from your github profile (google it) and use the token to push by doing: git push https://<GITHUB_ACCESS_TOKEN>@github.com/<GITHUB_USERNAME>/<REPOSITORY_NAME>.git

For those who have already ran npm install and now have a huge number of files to commit:

  • Add the node_modules to the end of the .gitignore file as specified above
  • Run git rm -r --cache node_modules
  • Now continue making your modfications to App.js file and push it to your repo (follow step 3 above)

Anyways hope the maintainers simply validate this PR and merge, so none of us have to waste time and get frustrated doing this especially for beginners.

@harshkushwaah
Copy link

the issue is solved you can close it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants