zoukankan      html  css  js  c++  java
  • Android Studio 工程的 .gitignore

    新建一个 Android Studio 工程时会默认建立两个 .gitignore 文件

    • .gitignore

      *.iml
      .gradle
      /local.properties
      /.idea/workspace.xml
      /.idea/libraries
      .DS_Store
      /build
      /captures
      
    • app/.gitignore

      /build
      

    但这还不够。顶层 .gitignore 改成如下才干净。从 stackoverflow 找到的,备份于此:

    # apply from stackoverflow by sam
    #
    # http://stackoverflow.com/questions/16736856/what-should-be-in-my-gitignore-for-an-android-studio-project
    #
    
    *.iml
    .gradle
    /local.properties
    /.idea/workspace.xml
    /.idea/libraries
    .DS_Store
    /build
    /captures
    
    
    .DS_Store
    
    #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
    
    # Windows thumbnail db
    Thumbs.db
    
    # OSX files
    .DS_Store
    
    # Eclipse project files
    .classpath
    .project
    
    # Android Studio
    *.iml
    .idea
    #.idea/workspace.xml - remove # and delete .idea if it better suit your needs.
    .gradle
    build/
    
    #NDK
    obj/
    
    
    *.swp
    *~
    
  • 相关阅读:
    Polly
    ELK
    Python基础三(选择,循环)
    Python基础二(输入与输出)
    Python关键字
    Python基础一(基本类型和运算符)
    Python发展史
    在虚拟机(vmware)上安装CentOS
    centos7联网
    Hashmap的实现
  • 原文地址:https://www.cnblogs.com/sammei/p/Android-Studio-gong-cheng-de-gitignore.html
Copyright © 2011-2022 走看看