If the changes in config files in branch alpha and beta are mutually exclusive i.e. they would cause a conflict, then you can simply merge it using ours merge strategy
git merge -s ours alpha
Otherwise, simplest solution would be to create a new branch from alpha. Delete the config files you don't want to merge, commit the changes and merge the new branch into beta. However, with this approach if you eventually merge beta into alpha, you'd loose the config files in alpha too in case of Fast-Forward Merge.
More preferable solution would be to create a separate commit in alpha which contains the config changes, now you can merge/rebase the rest of the branch into beta except that commit.
If the changes in config files is the latest commit, then you can easily do it as follows
git checkout -b temp_branch HEAD~1 git checkout beta git merge temp_branch
If the commit lies somewhere in between then you need to rebase --onto to remove that particular commit, and then merge. To explain, let's say you have
>> git log --oneline 2c10ba8 latest commit 088a38e config commit c233f51 some other commit >> git checkout -b temp_branch # Now you need to remove 'config commit' with hash id 088a38e >> git rebase --onto c233f51 088a38e 2c10ba8 # resolve if any conflict occurs # Now your git log should look like shown below, with undesirable commit removed >> git log --oneline 2c10ba8 latest commit c233f51 some other commit >> git checkout beta >> git merge temp_branch