{"thread":{"id":"20785","subject":"how to add an empty initial commit","startedAt":"2009-08-30T00:52:24Z","lastAt":"2009-08-31T00:06:22Z","messageCount":3,"participants":["bill lam","Sean Estabrooks"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"122092","messageId":"20090830005224.GC10952@debian.b2j","threadId":"20785","inReplyTo":null,"subject":"how to add an empty initial commit","fromName":"bill lam","fromEmail":"cbill.lam@gmail.com","sentAt":"2009-08-30T00:52:24Z","receivedAt":"2009-08-30T00:52:24Z","isPatch":false,"sender":{"key":"cbill.lam@gmail.com","avatar":null},"body":"I want to insert an empty initial commit so that I can rebase and edit\nfiles in the real initial commit. There is a --root option in\ngit-rebase but I can not find example of how to use it. \n\nI googled some said it needs to create a new branch, I tried but it\nfailed to merge.\n\n-- \nregards,\n====================================================\nGPG key 1024D/4434BAB3 2008-08-24\ngpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3\n"},{"id":"122094","messageId":"BLU0-SMTP13B5A682834BA2E926F610AEF30@phx.gbl","threadId":"20785","inReplyTo":"20090830005224.GC10952@debian.b2j","subject":"Re: how to add an empty initial commit","fromName":"Sean Estabrooks","fromEmail":"seanlkml@sympatico.ca","sentAt":"2009-08-30T01:39:27Z","receivedAt":"2009-08-30T01:39:27Z","isPatch":false,"sender":{"key":"seanlkml@sympatico.ca","avatar":"https://gravatar.com/avatar/f92923f54fc08c401fc59b71829d4b89e9b8087fbba45ff87c82e6a83aee02ae?d=mp&s=160"},"body":"On Sun, 30 Aug 2009 08:52:24 +0800\nbill lam <cbill.lam@gmail.com> wrote:\n\n> I want to insert an empty initial commit so that I can rebase and edit\n> files in the real initial commit. There is a --root option in\n> git-rebase but I can not find example of how to use it. \n\nBill,\n\nThis sounds like a hard way to go about things.  Instead, you can edit\nthe files as you wish, \"git add\" the new edits, and then use\n\"git commit --amend\" to alter the initial commit.   Don't think rebase\nwould help in the situation you describe.\n\nSean\n"},{"id":"122151","messageId":"20090831000622.GA3993@debian.b2j","threadId":"20785","inReplyTo":"BLU0-SMTP13B5A682834BA2E926F610AEF30@phx.gbl","subject":"Re: how to add an empty initial commit","fromName":"bill lam","fromEmail":"cbill.lam@gmail.com","sentAt":"2009-08-31T00:06:22Z","receivedAt":"2009-08-31T00:06:22Z","isPatch":false,"sender":{"key":"cbill.lam@gmail.com","avatar":null},"body":"On Sat, 29 Aug 2009, Sean Estabrooks wrote:\n> This sounds like a hard way to go about things.  Instead, you can edit\n> the files as you wish, \"git add\" the new edits, and then use\n> \"git commit --amend\" to alter the initial commit.   Don't think rebase\n> would help in the situation you describe.\n\nSean,\n\nYes, you are correct. git-rebase does not help much.  It has to initialise\nanother empty git repo and copy all commits to there.\n\n-- \nregards,\n====================================================\nGPG key 1024D/4434BAB3 2008-08-24\ngpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3\n"}]}