本方案借助IDEA的git GUI界面,命令行方式同理。

Step 1:

1
2
3
git checkout --orphan temp
git add .
git commit -m "initial commit"