No matter what I try, I cannot get these files to be ignored. I’ll discard them and when I run my app using
mix -S phx.server I get them back again. What is the solution?
I’ve tried every combo of this in the .gitignore file at the root of the repo.
Which files do you want to ignore exactly, and what have you tried in your
phx_new project generator already provides a
.gitignore that is sufficient for most users, as well as regular
mix new does, well, minus phoenix specifics.
Note that if you have already added the BEAM files to your Git repository earlier and now want to get rid of them, just
.gitignore will not work on its own.
Maybe this SO answer will help you then: https://stackoverflow.com/a/1274447/3533441