github上.gitignore模板合集,里面有各种.gitignore :https://github.com/github/gitignore

  自己用的Android Studio下项目的.gitignore文件,对github上的android.gitignore添加了

      # OSX files      //mac os下
      .DS_Store

      # Android Studio
      *.iml
      .idea

# Built application files*.apk*.ap_# Files for the Dalvik VM*.dex# Java class files*.class# Generated filesbin/gen/# Local configuration file (sdk path, etc)local.properties# OSX files.DS_Store# Android Studio*.iml.idea# Gradle files.gradle/build/# Local configuration file (sdk path, etc)local.properties# Proguard folder generated by Eclipseproguard/# Log Files*.log

  有时我们发现添加.gitignore文件后并没有忽略我们想要忽略的文件,解决方法就是清除一下缓存,原因gitignore对已经追踪(track)的文件无效,清除缓存后文件将以未追踪的形式出现.然后再重新添加提交一下,.gitignore文件里的规则就可以起作用了

git rm -r --cached .git add .git commit -m 'update .gitignore'

  清缓存生效方法参考:http://niltor.net/index.php/Home/Blog/showblog?id=5

更多相关文章

  1. Android(安卓)读取U盘或SD卡中的所有.txt文件
  2. gif文件导出png
  3. android之Android类装载器DexClassLoader之一
  4. MT6573默认锁屏界面修改
  5. Android(安卓)HorizontalScrollView 水平滑动 在listview上面动
  6. 如果,编译Android时新添加的应用程序没有被编译进image
  7. Android媒体文件metadata是如何实现跟解码器结合获取的
  8. uniapp制作Android纯净打包SDK项目
  9. NPM 和webpack 的基础使用

随机推荐

  1. Android(安卓)Makefile and build system
  2. 好用的Android(安卓)Studio插件
  3. Android高手进阶教程(十七)之---Android
  4. android区块链 钱包_Android(安卓)App 如
  5. AndroidStudio安装SDKComponentSetup无法
  6. Flutter的一生
  7. Android用Websocket实现聊天室
  8. 使用模拟器运行应用
  9. Android解析WindowManagerService(三)Windo
  10. python+appium自动化测试-元素定位之andr