Firstly, you can try
git reset
to get rid of any changes to the working directory and index. You should now be able to
git merge
If for some reason the git attributes make it seem like there are changes, and that won't work, try
git push . upstream/yourbranch:yourbranch
If this works, you should be in a headless state. IE, your current commit is not tracked by any branch.
git checkout yourbranch
Nowshould go to updated. If the attributes are still causing grief, add an option --forceto the checkout.
Hope this helps
source
share