My small team of database developers and I started using Git for version control 6 months ago. We have 1 development instance and 1 production instance right now.
When I set up Git for the team, I created the "MASTER" branch, then put everything that was installed on the production instance into the folders. Then I created a "DEV" branch and put the things that were installed on the development instance into the folders (overwriting the old file if there were duplicates).
Then we continued doing all of our development on the "DEV" branch, then when want to install things on production from the development instance, I cherrypick a "DEV" commit from the "MASTER" branch. Then it asks me to manually merge because there are merge conflicts...
What do I need to do so that we can install from development to production easier without having to do cherry picking each time? Or do we need to start another repository going forward?
Here is an example of what I'm looking for.
I have made changes to these files in the DEV branch:
file1
file2
file3
file4
file5
...
Added these files in the DEV branch:
file 80
file 81
But I would like to only merge into the MASTER branch these files:
file2
file4
file80
Each file is a PL/SQL trigger or function or procedure.