I have created a new branch from an existing branch:
git checkout master
git checkout -b test
then in the new branch I've renamed a file:
git mv foo.txt fooOld.txt
git mv fooNew.txt foo.txt
git commit -am "Rename file"
meanwhile someone else has edited the fooNew.txt on the master branch and pushed the changes:
git co master
echo "Some changes" >> fooNew.txt
git commit -am "Do some important changes"
git push origin master
now when I try and pull in the changes from master I get an error:
CONFLICT (modify/delete): fooNew.txt deleted in HEAD and modified in master.
how can I merge these 2 branches so that I end up with a foo.txt file containing the changes done to fooNew.txt on master?