I created a new repository which has exactly the production content. I want to have this content in my local devel environment. So I need to get that content from the repository. What I did was, in my local master branch:
get the content (in branch origin/master)
git fetch
merge and overwrite my local master branch (as it's explained in this question Git: Merging but overwriting changes).
git merge -X theirs origin/master
commit changes
git commit -am 'merged overwriting form origin/master'
but then when I do
git diff origin/master
I should see no differences, but I still see them. Someone knows why?
There are other ways to force git overwrite files on pull I can try, but I'd like to understand what I'm doing wrong.