I have a master feature branch in which all the feature development are merged during the development cycle. In case of any changes to the file, I want to pull the file from the master feature branch to avoid merge conflict. I tried the below approach but facing issue.
git checkout <Branchname>
git fetch
git checkout <masterfeature branchname> -- file1
<modify the code<file1> in local repo>
git add file1
git commit -m "<msg>"
git push
The changes are successfully reflected in Remote Feature branch but I am getting a merge Conflict when trying to merege to Master Feature branch. Please suggest how to proceed. The file was not even present in the feature branch and I pulled it from the Master feature branch and modified. Still it is giving me Merge Conflict issue.
Please Help! Thanks in Advance