Issue
I have a project up on github and I want to remove all eclipse related files from it and allow people who clone it to use any ide they want. Here is the project: https://github.com/vedi0boy/Archipelo
What would I have to put in my gitignore? I'm still very new to the whole version control manager thing so you don't have to tell me exactly what to put but maybe explain how it works and what to be careful about so that it will still work.
By the way, it uses gradle so I would also like it so that the gradle related files remain untouched since cloners will need them to build the project and I plan to remove 'APIs' folder and just use gradle dependencies.
Solution
For excluding configuration files you have to configure .gitignore
to something as follows:
# Eclipse
.classpath
.project
.settings/
# Intellij
.idea/
*.iml
*.iws
# Mac
.DS_Store
# Maven
log/
target/
And, only after this, you have to push your project because now you have to push your configuration to the remote repo.
And you can not delete it locally and push. You have to delete it from remote repo only:
git rm --cached .project
For a directory:
git rm --cached -r target
Answered By - catch23