📌  相关文章
📜  创建 git 分支没有提交历史 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:47.444000             🧑  作者: Mango

代码示例1
#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