Gitignore 不忽略文件夹 android,反应本机
Gitignore does not ignore folder android, react native
我已将文件夹 android 添加到 .gitingore
文件,执行以下命令:
git rm -rf --cached .
git add .
git commit -m "git"
git push origin master
文件夹 android 无论如何都会尝试推送,它有大文件并且 git 会抛出错误,其中有大于 100 mb 的文件。
我在 MacBook 上处理我的 react-native 项目时注意到这个错误。
这是我的git忽略
.expo/*
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
android/
*.orig.*
web-build/
android/
web-report/
# macOS
.DS_Store
您的 .gitignore
文件排除 android 文件夹似乎是正确的。
也许您在编辑 gitignore 之前提交了一个大文件?如果是,你可以看看如何
我已将文件夹 android 添加到 .gitingore
文件,执行以下命令:
git rm -rf --cached .
git add .
git commit -m "git"
git push origin master
文件夹 android 无论如何都会尝试推送,它有大文件并且 git 会抛出错误,其中有大于 100 mb 的文件。
我在 MacBook 上处理我的 react-native 项目时注意到这个错误。
这是我的git忽略
.expo/*
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
android/
*.orig.*
web-build/
android/
web-report/
# macOS
.DS_Store
您的 .gitignore
文件排除 android 文件夹似乎是正确的。
也许您在编辑 gitignore 之前提交了一个大文件?如果是,你可以看看如何