# I've tried to read the manuals, but "git pull" just won't work

2 messages from 2008-08-03 to 2008-08-03. Participants: Bruce Korb, Matt Pearson.
Thread: https://gitlist.dev/t/14818

## Bruce Korb, 2008-08-03 04:58

Subject: I've tried to read the manuals, but "git pull" just won't work
Message-ID: <668c430c0808022158s56e22c56t3bbd61eef59d7b32@mail.gmail.com>
URL: https://gitlist.dev/e/668c430c0808022158s56e22c56t3bbd61eef59d7b32%40mail.gmail.com

```
Sorry, I don't know where else to turn.
I've modified my local copy of ChangeLog and my "git pull" says, "Oh, oh!
You'd overwrite your changes" and refuses to pull.  I tried
"git reset HEAD  ChangeLog", but it says all sorts of crazy things
that make no sense and I'm still stuck.  I know I can fix this:
pull my edits into a patch, throw away my repository, clone a fresh
copy.  There has to be a better way.  The better  way is just too
obtuse to figure out.....Help, please?  Thank you.

```

## Matt Pearson, 2008-08-03 05:21

Subject: Re: I've tried to read the manuals, but "git pull" just won't work
Message-ID: <706b4240808022221we345b13md95e0dacf9436dba@mail.gmail.com>
URL: https://gitlist.dev/e/706b4240808022221we345b13md95e0dacf9436dba%40mail.gmail.com
In-Reply-To: <668c430c0808022158s56e22c56t3bbd61eef59d7b32@mail.gmail.com>

```
On Sun, Aug 3, 2008 at 12:58 AM, Bruce Korb <bruce.korb@gmail.com> wrote:
> Sorry, I don't know where else to turn.
> I've modified my local copy of ChangeLog and my "git pull" says, "Oh, oh!
> You'd overwrite your changes" and refuses to pull.  I tried
> "git reset HEAD  ChangeLog", but it says all sorts of crazy things
> that make no sense and I'm still stuck.  I know I can fix this:
> pull my edits into a patch, throw away my repository, clone a fresh
> copy.  There has to be a better way.  The better  way is just too
> obtuse to figure out.....Help, please?  Thank you.

Depends on whether you want to keep the changes you made or not. If
you don't care about the changes, 'git checkout -- ChangeLog' will
remove the local changes. If you want to keep the changes, you can
stash them away with 'git stash', then do the pull, then re-add the
changes (and maybe have to resolve conflicts) with 'git stash apply'.
You could also just commit the changes. If you still can't get it to
work, you're going to have to paste actual program output (the output
from status would probably help).

Matt

```
