I have a file called VersionUtil and set it into the gitignore. In the gitignore file, I have
# Git info
app/src/main/java/com/test/util/VersionUtil.java
Before I run the project in android studio, there's a line of code in VersionUtil.java:
public static final String COMMIT_INFO = "info".
I ran git status and it returned
Your branch is up-to-date with 'origin/develop'.
However, after I run the project, VersionUtil.java was changed. That line is:
public static final String COMMIT_INFO = "6a604 XXXXX ".
The git status returned
modified: app/src/main/java/com/test/util/VersionUtil.java
Do you guys have any idea? Why the file in gitignore is still being tracked? Any help would be appreciated.