git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: CIFS fixes

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
May 11, 2008, 17:04 UTC
Message-ID
<alpine.LFD.1.10.0805110957530.3330@woody.linux-foundation.org>
In-Reply-To
<524f69650805110953t6561ff84t1867681bea093d35@mail.gmail.com>
On Sun, 11 May 2008, Steve French wrote:
>
> That is not what I meant.   I meant that since May 6th I only did one
> - and those messages still showed up.  So I just ran a git-rebase
> origin which removed them
You're doing something wrong then, and your rebased result is suspect.

Have you done a "git fetch" to fetch what is in my current tree? Because if you haven't, then you're generating the "this is the new state" without actually taking into account that the old state was already pulled!

And that *old* state contains those four merges that I got from your previous pull request!

So now you likely rebased the commits that I already merged (again, because you *think* they are just local to your branch, because you haven't updated your origin reference point), and they are now duplicates of something I already have (but with different commit ID's, since your rebase has moved them around in the history).

So now, if I were to pull again, I'd just get the same commits all over again, just as duplicates (plus any new ones, of course). Git would probably merge it all fine - unless your new ones were to the same area as the old ons, in which case it might be unhappy about the fact that both branches changed things in the same area - but the history would be crud.

In other words: you *must*not* rebase stuff that you have already publicized. That just creates problems.

The good news is that you can most likely fix it all up by just doing
	git fetch
	git rebase origin

because now the *new* rebase will try to rebase it all over again, but now it will see that I already merged the old ones, so the rebase will just skip those commits, and you should have only the *real* new ones pending again.

		Linus
Previous: Steve FrenchNext: Steve French
Message 4 of 6 in “Re: CIFS fixes”
  1. Steve FrenchMay 11, 2008
  2. Linus TorvaldsMay 11, 2008
  3. Steve FrenchMay 11, 2008
  4. Linus TorvaldsMay 11, 2008
  5. Steve FrenchMay 11, 2008
  6. Linus TorvaldsMay 11, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.