2012년 3월 18일 오전 11:58, Jiang Xin <worldhello.net@xxxxxxxxx>님의 말: >> $ git checkout -b test --orphan > > option -b and --orphan can not be used together. > >> $ git format-patch <newroot>^..<newroot> | 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 <newroot> | git apply - --index $ git commit --reuse-message <newroot> $ git rebase --onto test --root master $ git branch -d test -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html