Gitignore不忽略文件夹android,反应原生



我已经将文件夹android添加到.gitingore文件中,执行以下命令:

git rm -rf --cached . 
git add .
git commit -m "git"
git push origin master

文件夹android无论如何都试图推送,它有大文件和git抛出错误,有文件>100 mb。

我在MacBook上注意到了这个错误,当时我正在进行我的react原生项目。

这是我的gitignore

.expo/*
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
android/
*.orig.*
web-build/
android/
web-report/
# macOS
.DS_Store

您的.gitignore文件似乎正确地排除了android文件夹。

也许你在编辑gitignore之前提交了一个大文件?如果是,你可以看看如何从Git历史中删除大文件

最新更新