git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to fix “Your branch and 'origin/master' have diverged” after editing a commit that came before a pull?
@ 2010-11-20  0:36 Yang Zhang
  2010-11-20  1:59 ` Yang Zhang
  2010-11-20  4:36 ` Jeff King
  0 siblings, 2 replies; 8+ messages in thread
From: Yang Zhang @ 2010-11-20  0:36 UTC (permalink / raw)
  To: git

In the following scenario:

1. Make commits A, B, C
2. Pull, getting commits D, E
3. Make more commits F, G, H, ...
4. Realize that you need to tweak B
5. Tweak B using git rebase -i and git commit --amend

Now git status says:

  Your branch and 'origin/master' have diverged.

How should I fix this? Thanks.

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

end of thread, other threads:[~2010-11-22  5:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-20  0:36 How to fix “Your branch and 'origin/master' have diverged” after editing a commit that came before a pull? Yang Zhang
2010-11-20  1:59 ` Yang Zhang
2010-11-20  4:36 ` Jeff King
2010-11-20 20:12   ` Yang Zhang
2010-11-21 14:45   ` Gavin Guo
2010-11-21 16:30     ` Jeff King
2010-11-21 18:51       ` Yang Zhang
2010-11-22  5:38         ` Jeff King

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).