git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* I've tried to read the manuals, but "git pull" just won't work
@ 2008-08-03  4:58 Bruce Korb
  2008-08-03  5:21 ` Matt Pearson
  0 siblings, 1 reply; 2+ messages in thread
From: Bruce Korb @ 2008-08-03  4:58 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: I've tried to read the manuals, but "git pull" just won't work
  2008-08-03  4:58 I've tried to read the manuals, but "git pull" just won't work Bruce Korb
@ 2008-08-03  5:21 ` Matt Pearson
  0 siblings, 0 replies; 2+ messages in thread
From: Matt Pearson @ 2008-08-03  5:21 UTC (permalink / raw)
  To: Bruce Korb; +Cc: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-03  5:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-03  4:58 I've tried to read the manuals, but "git pull" just won't work Bruce Korb
2008-08-03  5:21 ` Matt Pearson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).