Hacker News new | comments | ask | show | jobs | submit login
Always Start with an Empty Commit (bit-booster.com)
4 points by gsylvie on Mar 21, 2017 | hide | past | web | favorite | 2 comments

> I’ve never actually seen an orphan branch in the wild.

I use them for Github's `gh-pages` branches. However, the [official documentation](https://help.github.com/articles/creating-project-pages-usin...) suggests to branch of master and delete everything.

I also work in [a repo with three roots](https://github.com/libfirm/libfirm). It was different repos, which got merged later.

Interesting gh-pages approach!

Yes, that make sense. An orphan branch is a nice way to bring in the disparate history of a separate repo that you've decided to merge into your main repo.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact