i am working via pull requests
so i have upstream -- remote that points to the upstream repository origin -- remote that points to my repository and localy i am working in a branch -- "feature1".
when i finished working on my feature i need to get changes from upstream that others did while i was working on my feature and merge them with my changes. so in "feature1" i do:
-- git commit -m "this is my feature"
-- git checkout master
-- git fetch upstream
-- git merge upstream/master ( i keep master clean and make pr only from other branches)
-- git checkout feature1
-- git merge upstream/master
here i have a conflict in 1 file. i used eclipse to resolve it and add the file
-- git commit -m "i did merge"
-- git push origin feature1
and now i see that ALL of the files were overwritten by my merge. Why did this happen? Where was my mistake? how should it be done?