I created a git repository and worked a bit on my Android project, but now I understand that I have added files to the repo that will change every time because they are generated. How can I delete them and make sure that they will not be added again.
I already added them to .gitignore, which blocks as follows
bin/classes/** gen/** bin/PDiXUploader.apk bin/classes.dex bin/resources.ap_ gen/de/srs/android/pdixuploader/R.java
But now I'm not sure how to remove it from the repo so that it is not under version control.
This is my git status log
$ git status # On branch master # Changes not staged for commit: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: bin/PDiXUploader.apk # modified: bin/classes.dex # modified: bin/resources.ap_ # modified: gen/de/srs/android/pdixuploader/R.java # modified: res/layout/activity_instance_selection.xml # modified: res/layout/activity_main.xml # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # res/values/dimens.xml no changes added to commit (use "git add" and/or "git commit -a")
thanks
source share