📅  最后修改于: 2022-03-11 14:51:47.444000             🧑  作者: Mango
#Use the command to create an orphan branch
git checkout -—orphan temp-branch
#Removed All staged files
git rm -r —-cached stage_files
git rm -r —-cached *
#Create a Clean Branch from the empty temp-branch
git checkout -b new-empty-branch