Re: git rebase -i <first_commit_in_repository>
- From
- Dirk Süsserott <newsletter@dirk.my1.cc>
- Date
- Oct 28, 2009, 19:24 UTC
- Message-ID
- <4AE89A81.9040407@dirk.my1.cc>
- In-Reply-To
- <b2e43f8f0910261347m38ccb608nb5858ff1dc432b33@mail.gmail.com>
Am 26.10.2009 21:47 schrieb Allan Caffee:
Show 17 quoted lines
> 2009/10/26 Dirk Süsserott <newsletter@dirk.my1.cc>: >> 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