I am trying to add gradle.properties like rest but still changes that files changes are showing in git status.
Is there any other way to add files in git-ignore using android studio.
You should use git rm to untrack the gradle.properties file first.
git rm --cached gradle.properties
git commit -m "Remove gradle.properties"
Then add the following line to your project .gitignore file
gradle.properties
Commit and push that and any new changes to this file should not be tracked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With