Creating a new empty branch for a new project

前端 未结 8 2054
你的背包
你的背包 2020-11-28 00:10

We are using a git repository to store our project. We have our branches departing from the original branch. But now we want to create a small new project to track some docu

8条回答
  •  时光取名叫无心
    2020-11-28 00:30

    i found this help:

    git checkout --orphan empty.branch.name
    git rm --cached -r .
    echo "init empty branch" > README.md
    git add README.md
    git commit -m "init empty branch"
    

提交回复
热议问题