前言
cmd
git clone git@gitlab.xxx.ai:rrr/traffic_light_detection.git cd traffic_light_detection git branch -a git checkout --orphan newbranch git rm -rf . echo '# new branch' >> README.md git add README.md git commit -m 'new branch first commit' git push origin emptybranch
参考
1. git创建一个没有历史记录的空白分支_idea git分支不带历史记录_欲饮琵琶码上催的博客-CSDN博客;
完