How can I completely empty the master branch in Git?

后端 未结 6 2341
猫巷女王i
猫巷女王i 2020-12-23 13:41

I would like to completely empty the master branch in Git. For now, I would also like to keep all other branches which have been branched from master.

Is this possib

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-23 14:13

    how about checkout to the master branch of your local repository and delete everything. then push this branch to the remote branch(origin)

    do u remove empty the content of the master branch or the branch itself?

提交回复
热议问题