For the longest time, I had two classes of system-generated files that kept showing up in my pull requests:
- cache files
- test case properties file
The latter was in .gitignore
It turns out that I had them on the master branch of the repository. I followed these steps to remove them from there...
, as well as git-ignoring the cache files, which leaves my .gitignore
looking like this:
.gradle
bin
Reports
Libs
output
!output/.gitkeep
build
.classpath
.project
# Added by Mike Warren
"Zoho Katalon Project/settings/internal/com.kms.katalon.composer.testcase.properties"
"Zoho Katalon Project/.cache/**/*"
This works to completely remove any cache files from my changesets (and therefore pull requests)...
...but for some odd reason, the Zoho Katalon Project/settings/internal/com.kms.katalon.composer.testcase.properties
file still remains in my changeset, despite that the file is no longer part of master branch!
I keep having to say git rm --cached "Zoho Katalon Project/settings/internal/com.kms.katalon.composer.testcase.properties"
just to get it out of my changeset!
What can I do to make sure that this file is gone for good from any change sets (present or future)?