From: Thomas Ferris Nicolaisen tfn...@gmail.com
Repos (or branches) without history are funny places where a lot of
operations make less or more sense. The place to address this is the Git
developer mailing list, but the use-case does sound a bit, well, pointless.
It's true that it's not
On Thursday, June 6, 2013 8:51:50 PM UTC+2, Dale Worley wrote:
When you want to create a new branch that has no ancestors, you use
git checkout --orphan to set the repository in a state where the
next commit will have no parents. However, it appears that one can
only do git checkout
What I did, when I wanted to initialize some more-or-less empty branches
was to have a single file in all of them. Called, cleverly, branch
git init
echo 'master' branch
git add .
git commit -m 'master'
git checkout --orphan b2
echo 'b2' branch
git add .
git commit -m 'b2'
# and so on
And, if