I've started using git
recently for a Django web app. I am also using the South Migration app for Django.
I have 2 branches - develop
and master
. I added new features to develop
and now I would like to merge develop
into master
.
The problem is I have migration folders and I don't want them to be merge. For that reason, I added a .gitignore
file in the main folder of the master
branch and the develop
branch.
.gitignore
:
*.pyc
!/.gitignore
acpkinballmanageevents/migrations/
acpkinballmanageleague/migrations/
acpkinballmanagemembers/migrations/
acpkinballmanageteams/migrations/
blog/migrations/
managelayerslider/migrations/
managesite/migrations/
But it asks me to merge some .pyc
file and files in the /migrations/
folders....
Is it possible to not merge them or is it recommended to merge the migration files?
EDIT:
Here is my .gitattributes
file:
acpkinballmanageevents/migrations/* merge=ours
acpkinballmanageleague/migrations/* merge=ours
acpkinballmanagemembers/migrations/* merge=ours
acpkinballmanageteams/migrations/* merge=ours
blog/migrations/* merge=ours
managelayerslider/migrations/* merge=ours
managesite/migrations/* merge=ours