I've created my first Android Studio with Kotlin support, made a git project out of it, created a private github repository, added it to the remote in the project and did a first commit (not pushed yet).
However, as soon as I do a commit, there is always a new version of gradle.bat
, which I shouldn't add to .gitignore
.
Why, and how do I solve this?
For those who are having the same issue, it seems the timestamp of this file is changed by IDEs and that's why Git sees it as changed all the time. My solution was to add it to my global .gitignore
file and run git update-index --assume-unchanged src/file/to/ignore
command as this file is already marked in Git as changed.
Be aware, it's a local solution, this helps only for your local development.
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