Thanks Eric. Hopefully someone will enhance rebase to handle the root commit.
Hi,
probably my approach could help you in the future: When I create a new
repo (git init) I firstly create an initial commit with nothing else
than an initial commit, i.e.:
$ git init
$ echo "initial" > initial.commit
$ git add initial.commit
$ git commit -m "Initial commit"
and then secondly
$ git add .
$ git commit -m "*REAL* initial commit"
Afterwards I have a repo with an initial commit that only contains one
file (initial.commit) and the "real" initial commits thereafter. Maybe
that's a solution for you.
Cheers,
Dirk
From: Allan Caffee <hidden> Date: 2016-06-15 22:47:36
2009/10/26 Dirk Süsserott [off-list ref]:
Am 26.10.2009 19:08 schrieb eschvoca:
Hi,
probably my approach could help you in the future: When I create a new repo
(git init) I firstly create an initial commit with nothing else than an
initial commit, i.e.:
$ git init
$ echo "initial" > initial.commit
$ git add initial.commit
$ git commit -m "Initial commit"
I don't think this is actually necessary. You should just be able to do:
$ git init
$ git commit --allow-empty -m "Initial commit (empty)"
--
Allan
Thanks Eric. Hopefully someone will enhance rebase to handle the root
commit.
If you cannot do it yourself, you can always offer to bribe^Wpay somebody
to do it for you.
Ciao,
Dscho
I can do the workaround myself but not the production ready patch.
Right now the only bribe I can offer is that it might be less work
writing the patch than supporting this corner case with answering
questions and writing a FAQ entry about it. It also would make the
awesome rebase -i even awesomer :) I know, a disappointing bribe but
from a thankful user.
Thanks
Am 26.10.2009 19:08 schrieb eschvoca:
Hi,
probably my approach could help you in the future: When I create a new repo
(git init) I firstly create an initial commit with nothing else than an
initial commit, i.e.:
$ git init
$ echo "initial" > initial.commit
$ git add initial.commit
$ git commit -m "Initial commit"
I don't think this is actually necessary. You should just be able to do:
$ git init
$ git commit --allow-empty -m "Initial commit (empty)"
Allan,
that works great and is not as cumbersome as my solution.
Thank you!
Dirk