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

Re: [BUG] Amending a shallow clone -> orphan branch

From
AMAlexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
Date
Aug 6, 2021, 12:27 UTC
Message-ID
<fbec1ce8-a1ec-b504-72a7-2f96b646127b@syntevo.com>
In-Reply-To
<b3083a15-f2da-0eae-b07b-8a641c613906@gmail.com>
On 06.08.2021 15:21, Bagas Sanjaya wrote:
> So you're amending merge commit by adding dummy file, so that your 
> `master` branch becomes divergent against origin. That dummy file isn't 
> contained in any commits that are included with that merge commit.

Note, the problem isn't about merge commits, it happens for regular commits as well. Maybe I should have picked a different repo for example. Still, the problem with losing all parents is the same regardless of merge/regular commit.

Previous: Alexandr Miloslavskiy
Message 5 of 5 in “[BUG] Amending a shallow clone -> orphan branch”
  1. Alexandr MiloslavskiyAug 6, 2021
  2. Bagas SanjayaAug 6, 2021
  3. Alexandr MiloslavskiyAug 6, 2021
  4. Alexandr MiloslavskiyAug 6, 2021
  5. Alexandr MiloslavskiyAug 6, 2021

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.