![](/img/trans.png)
[英]eclipse android gitignore for project.properties file
[英]Gitignore not ignoring certain project.properties
我正在使用Windows和Mac的github應用程序,我的.gitignore文件有問題。
我試圖忽略在我的兩台機器之間切換時生成的project.properties文件,但我似乎無法讓它工作。
下面是我的.gitignore的副本,它似乎適用於除了project.properties之外的所有內容,以及我在那里的gen / *,但不那么煩人。
我一直在研究這個問題並且沒有找到答案,我將不勝感激任何幫助!
# Built application files
*.apk
*.ap_
# Files for the Dalvik VM
*.dex
# Java class files
*.class
# Generated files
bin/
gen/
# Gradle files
.gradle/
build/
# Local configuration file (sdk path, etc)
local.properties
.properties
# Proguard folder generated by Eclipse
`enter code here`proguard/
#Log Files
*.log
project.properties
*.properties
project.properties
我懷疑你在提交該文件后將project.properties行添加到.gitignore。
您需要做的是以下內容:
git rm --cached project.properties
並為gen / *
git rm --cached gen/
然后提交。
--cached選項將僅從索引中取消並刪除路徑。 無論是否修改了工作樹文件,都將保持不變。 GIT-RM
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.