How can I create a commit without a parent?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ron Garret
Date: Tuesday, February 2, 2010 - 1:00 am

SLSIA.  git commit-tree insists on having at least one parent commit at 
the command line.  From reverse-engineering it seems like I could do it 
by setting .git/HEAD to 'ref: refs/heads/some-nonexistent-branch' but 
mucking with HEAD directly like that feels kinda scary.

Thanks,
rg

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
How can I create a commit without a parent?, Ron Garret, (Tue Feb 2, 1:00 am)
Re: How can I create a commit without a parent?, Junio C Hamano, (Tue Feb 2, 1:05 am)
Re: How can I create a commit without a parent?, Ron Garret, (Tue Feb 2, 1:19 am)
Re: How can I create a commit without a parent?, Jakub Narebski, (Tue Feb 2, 8:02 am)
Re: How can I create a commit without a parent?, Jay Soffian, (Tue Feb 2, 9:40 am)