@AnotherAnkor

Как правильно заливать nodejs проект на github?

Сделал:
git rm -r --cached .
git add .
git commit -m "fixed untracked files"

Перед этим создал .gitignore и добавил папку node_modules/
При попытке выполнить git push получаю ошибку:
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

Что за ерунда и как это исправить?
  • Вопрос задан
  • 225 просмотров
Пригласить эксперта
Ответы на вопрос 2
saboteur_kiev
@saboteur_kiev
software engineer
Ну там же четко указано, что гитхаб не принимает файлы размером больше 100 мбайт.
Уберите node_modules/electron/dist/electron из коммита
Ответ написан
Отсюда
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-...
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы