From: Yi, EungJun Date: Sun, 18 Mar 2012 19:05:14 GMT Subject: Re: How to reorder all commits include the initial commit Message-ID: In-Reply-To: 2012년 3월 18일 오전 11:58, Jiang Xin 님의 말: >> $ git checkout -b test --orphan > > option -b and --orphan can not be used together. > >> $ git format-patch ^.. | git am > > can not apply patch when there is no root commit > You are all right. I made several mistakes including what you point out. I fixed them as follows: $ git checkout --orphan test $ git rm '*' -f $ git show | git apply - --index $ git commit --reuse-message $ git rebase --onto test --root master $ git branch -d test