我有an Android library,出于某种原因,我在我的.gitignore
中指定的文件和文件夹不会被忽略。Gitignore不会忽略Android库中的一些构建文件
我试过修改我的.gitignore
以及these steps,但这并没有改变任何东西。
这里是我的顶级.gitignore
(这也可以找到on the GitHub repo):
# Gradle files
.gradle/
build/
*/build/
# Local configuration file (sdk path, etc)
local.properties
# IntelliJ
*.iml
/.idea
的module with the build
folder that isn't being ignored具有以下.gitignore
:
/build/
我不知道为什么build
目录不会被忽略,因为它在我的sample app module和top-level directory中被忽略。
此外,当我更新我的库的版本时,我确实对build
目录中的某些文件进行了更改,如果这很重要。
也许这会有所帮助:http://stackoverflow.com/a/1139797/3187439 – daco
我刚刚下载的.gitignore插件工作室,被确定忽略完成以及 –
谢谢@daco,你的评论帮助我解决了我的问题。 –