我正在做一个新的
Android项目的初始承诺.我对代码的状态感到满意,但是想知道哪些文件要添加commit,哪些文件应该放弃.
这是我的.gitignore内容:
# built application files *.apk *.ap_ # files for the dex VM *.dex # Java class files *.class # generated files bin/ gen/ # Local configuration file (sdk path,etc) local.properties # Eclipse project files .classpath .project # Proguard folder generated by Eclipse proguard/ # Intellij project files *.iml *.ipr *.iws .idea/
这是我现在的git状态:
.gitignore .gradle/ app/ build.gradle build/ gradle/ gradlew gradlew.bat import-summary.txt settings.gradle
解决方法
我做的一切除了当地的东西,这是我的.gitignore:
*.iml .gradle /local.properties /.idea .DS_Store /build /captures Dependency/* /app/.idea/* /app/.svn/* /app/local.properties