I have a branch named test and i want to merge it to master. i am using below git diff command in shell script to get the changed file name
->master=git diff release/1..master --name-only . ':(exclude)*.yml' ':(exclude)*.yml' ':(exclude)*.gitmodules'
master variable has all the file names such as test1.py test2.py and template/test3.py
I tried using below command but not able to merge it
git checkout master
git checkout release/1 $master
Could you let me know the command which merges specific file from specific folder to master?