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

Re: how to add an empty initial commit

From
BLbill lam <cbill.lam@gmail.com>
Date
Aug 31, 2009, 00:06 UTC
Message-ID
<20090831000622.GA3993@debian.b2j>
In-Reply-To
<BLU0-SMTP13B5A682834BA2E926F610AEF30@phx.gbl>
On Sat, 29 Aug 2009, Sean Estabrooks wrote:
> This sounds like a hard way to go about things.  Instead, you can edit
> the files as you wish, "git add" the new edits, and then use
> "git commit --amend" to alter the initial commit.   Don't think rebase
> would help in the situation you describe.
Sean,

Yes, you are correct. git-rebase does not help much. It has to initialise another empty git repo and copy all commits to there.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
Previous: Sean Estabrooks
Message 3 of 3 in “how to add an empty initial commit”
  1. bill lamAug 30, 2009
  2. Sean EstabrooksAug 30, 2009
  3. bill lamAug 31, 2009

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.