GIthub issue #149997
Replies: 2 comments
-
I understand your frustration. The issue arises because Git doesn't retroactively apply To resolve this issue, follow these steps:
By following these steps, you remove the large directories from both your local and remote repositories, ensuring they are ignored in future commits. This approach addresses the issue of pushing large files that have already been committed. If you continue to encounter issues, consider using tools like [BFG Repo-Cleaner](https://rtyley.github.io/bfg-repo-cleaner/) to remove large files from your repository's history. This tool is designed to handle such scenarios efficiently. Remember, it's best practice to avoid committing large directories like |
Beta Was this translation helpful? Give feedback.
-
Hmm weirdly when i use the git rm -r --cached node_modules .next command i get this error MacBook:plinxy-v2 macbook$ git rm -r --cached node_modules .next |
Beta Was this translation helpful? Give feedback.
-
Hello so like im trying to push my code to github and it says the node modules folder is too bit so like yeah thats fine i add it to the .gitignore with .next and then that STILL doesnt work so then i just out right delete node modules and .next folders and try to push AGAIN and it still says the node modules folder is too big.. how the fuck does that work? its not even a folder in my codebase......
Beta Was this translation helpful? Give feedback.
All reactions