When working with django, I really dont like adding my migration files on my git. Yes, I know they said you should have same migration on locally and on your production server, but when you have multiple branch..sometimes it would mess up your database on your production server.
So, I've been trying to figuring out why the hell my migration files keep popping up on my server, turns out that either you need to remove it on your git server first, or just reset your git folder. Something like this :
git commit -m "commit first or you'll loose your changes"
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
now, all files in your gitignore will be deleted on your git server!