Re: git pull (Your local changes to ... would be overwritten by merge)
- From
- Daniel Blendea <bdaniel7@gmail.com>
- Date
- Jun 17, 2010, 11:18 UTC
- Message-ID
- <AANLkTinWS0zWhh0d-yrb7eWMEeQenoAF8tA6-l9BRP_q@mail.gmail.com>
- In-Reply-To
- <vpq4oh1zzfs.fsf@bauges.imag.fr>
Windows 7, did not change anything related to crlf.
I solved the problem with
git fetch --all git reset --hard origin/master
--- Daniel
On Thu, Jun 17, 2010 at 14:11, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote:
Show 27 quoted lines
> Michael J Gruber <git@drmicha.warpmail.net> writes: > >> Daniel Blendea venit, vidit, dixit 17.06.2010 11:35: >>> Hello, >>> >>> A while ago I have cloned on my computer a git repo. >>> Since then, the developers have modified several files in the repo. >>> Now I want to update my copy with the latest changes. >>> >>> I do 'git pull' but I get 'Your local changes to .... would be >>> overwritten by merge. Aborting.' >>> I didn't modified any local file. I tried using 'git stash save' but no luck. > > Which OS? Do you have any crlf conversion enabled? Any filter set in > .gitattributes? > >> Most likely the remote side did a non-forward push and brought you in >> that situation. > > A non-fast forward push would force a non-fast forward pull, > possibly/probably with conflicts, but wouldn't trigger this message, > which is generated before the merge is actually started. > > -- > Matthieu Moy > http://www-verimag.imag.fr/~moy/ >