我是 Git 和 Android 开发的新手,我找不到这个问题的答案。
当我在 Android Studio 中构建项目时,会在文件夹 app/build
中创建很多文件。
我想我不需要那些文件,但在 .gitignore
中忽略它们之前,我想确保从第一次提交开始就不会弄乱我的 repo :D
我检查了this question ,但我在示例 .gitignore
中看不到文件夹 app/build
。
我应该将它添加到我的 .gitignore
吗?
附言如果相关的话,我正在使用 Android Studio 2.2.3
最佳答案
I guess I don't need that files, but before ignoring them in the .gitignore I would like to be sure to not mess my repo since from the first commit :D
您的存储库中不需要build
文件。
通常 .gitignore
文件包含 /build
。
I checked this question but I cannot see in the example .gitignore the folder app/build.
你可以在app
目录下再放一个.gitignore
文件,这个文件的内容也包含/build
。
/project
.gitignore
/app
.gitignore
关于android - 我应该在 Android Studio 中对应用程序/构建文件进行版本控制吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41414119/