I am using git and I have two branches: production and master. At this time production is 9 months old and a lot of changes have gone into master branch.
I am using capistrano and so I need to push all the changes to production branch so that I could deploy. However when I merge I get tons of merge conflicts. I don’t care about merge issues because I want my production branch to be overridden by master branch. Is there a way to do it.
If not I was thinking of creating a branch of production called production_old. Then delete everything in production branch and then merge from master.
I am using github.
Maybe the
oursmerge strategy is what you are looking for.more … http://www.kernel.org/pub/software/scm/git/docs/git-merge.html