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(安卓)Pro] android 混淆文件project.properties和progu
  2. 简单的 Android(安卓)拍照并显示以及获取路径后上传
  3. Android(安卓)高通代码预制apk可卸载,恢复出厂设置apk可恢复 Andr
  4. 如何在Android平板电脑POWER按钮菜单中添加休眠功能
  5. Android--sharepreference总结
  6. Android(安卓)sdcard文件读写操作
  7. 解决Android模拟器打不开的问题!...
  8. Android(安卓)tips2
  9. NPM 和webpack 的基础使用

随机推荐

  1. Android 模拟J2me 通过连接框架
  2. 创建你的第一个Android PHP应用
  3. [转]Android基础类库
  4. Android之进程与线程
  5. android使用socket使底层和framework通信
  6. android源码/内核下载
  7. android静默安装的实现(一)
  8. Android项目中集成React Native
  9. android 4.0 编译模式 eng -- > user 时
  10. 如何理解、使用Android(安卓)LogCat以及