Next.js: Why can't I .gitignore .next/ files?

Created on 13 Sep 2017  路  5Comments  路  Source: vercel/next.js

This is probably just me being novice at .gitignore, but after doing a lot of googling I'm unable to understand what I am doing wrong. Here is the link to my repo (next.js-boilerplate branch): https://github.com/thetoxicavenger/google-sheets-api-test. Thank you.

Most helpful comment

@thetoxicavenger You have the line commented out: https://github.com/thetoxicavenger/google-sheets-api-test/blob/next.js-boilerplate/.gitignore#L60

Change that line to just contain .next and then run git rm -r --cached .next to remove the folder from your git repo

All 5 comments

I don't see .next in the .gitignore file?

Could you explain your problem better. I just checked your package.json but you do not have next.js installed.

@thetoxicavenger You have the line commented out: https://github.com/thetoxicavenger/google-sheets-api-test/blob/next.js-boilerplate/.gitignore#L60

Change that line to just contain .next and then run git rm -r --cached .next to remove the folder from your git repo

Like @kylealwyn said 馃槃

@kylealwyn @timneutkens yep, props Kyle. Didn't know about that git command; that's exactly what I was looking for! Kudos.

Was this page helpful?
0 / 5 - 0 ratings