我的.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
# Windows thumbnail db
Thumbs.db
# OSX files
.DS_Store
# Eclipse project files
.classpath
.project
# Android Studio
.idea
build/
cache.properties.lock
.idea/workspace.xml
*.iws
.gradle/
**/.gradle/
Run Code Online (Sandbox Code Playgroud)
但是,每当我对我的应用程序进行更改时,git都会包含类似于.gradle/1.12/taskArtifacts/cache.properties.lock提交的文件.
这有什么不对?为什么它适用于文件夹build/但不适用.gradle/?
Git可能已经在跟踪这些文件了.运行在终端为我工作两个以下命令.gradle和.idea文件:
git rm --cached .gradle -r
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5098 次 |
| 最近记录: |