A
A
AnotherAnkor2020-11-15 22:53:46
GitHub
AnotherAnkor, 2020-11-15 22:53:46

How to upload a nodejs project to github?

Made:

git rm -r --cached .
git add .
git commit -m "fixed untracked files"

Before that, I created .gitignore and added the node_modules/ folder.
When I try to execute git push, I get an error:
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: e83b520adb2652e8e2bdee49bfa8a1f38a321a2e524102b974e43fa2c5e87cff
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File node_modules/electron/dist/electron is 126.17 MB; this exceeds GitHub's file size limit of 100.00 MB

What is this nonsense and how to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2020-11-15
@saboteur_kiev

Well, it is clearly stated there that the github does not accept files larger than 100 MB.
Remove node_modules/electron/dist/electron from the commit

V
Vladimir, 2020-11-15
@Casufi

From here
https://stackoverflow.com/questions/24290358/remov...


To forget directory recursively add /*/* to the path:
git update-index --assume-unchanged wordpress/wp-content/uploads/*/*
Using git rm --cached is not good for collaboration. More details here: How to stop tracking and ignore changes to a file in Git?
https://stackoverflow.com/questions/936249/how-to-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question