git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how to add an empty initial commit
@ 2009-08-30  0:52 bill lam
  2009-08-30  1:39 ` Sean Estabrooks
  0 siblings, 1 reply; 3+ messages in thread
From: bill lam @ 2009-08-30  0:52 UTC (permalink / raw)
  To: git

I want to insert an empty initial commit so that I can rebase and edit
files in the real initial commit. There is a --root option in
git-rebase but I can not find example of how to use it. 

I googled some said it needs to create a new branch, I tried but it
failed to merge.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3

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

* Re: how to add an empty initial commit
  2009-08-30  0:52 how to add an empty initial commit bill lam
@ 2009-08-30  1:39 ` Sean Estabrooks
  2009-08-31  0:06   ` bill lam
  0 siblings, 1 reply; 3+ messages in thread
From: Sean Estabrooks @ 2009-08-30  1:39 UTC (permalink / raw)
  To: bill lam; +Cc: git

On Sun, 30 Aug 2009 08:52:24 +0800
bill lam <cbill.lam@gmail.com> wrote:

> I want to insert an empty initial commit so that I can rebase and edit
> files in the real initial commit. There is a --root option in
> git-rebase but I can not find example of how to use it. 

Bill,

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

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

* Re: how to add an empty initial commit
  2009-08-30  1:39 ` Sean Estabrooks
@ 2009-08-31  0:06   ` bill lam
  0 siblings, 0 replies; 3+ messages in thread
From: bill lam @ 2009-08-31  0:06 UTC (permalink / raw)
  To: Sean Estabrooks; +Cc: git

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

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

end of thread, other threads:[~2009-08-31  0:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-30  0:52 how to add an empty initial commit bill lam
2009-08-30  1:39 ` Sean Estabrooks
2009-08-31  0:06   ` bill lam

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