Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add gradle.properties in git-ignore file android? [duplicate]

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.

like image 463
Hitesh Matnani Avatar asked Jun 20 '18 04:06

Hitesh Matnani


1 Answers

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.

like image 73
Mostafa Gazar Avatar answered Sep 28 '22 00:09

Mostafa Gazar