Creating a new empty branch for a new project

前端 未结 8 2063
你的背包
你的背包 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:48

    If your git version does not have the --orphan option, this method should be used:

    git symbolic-ref HEAD refs/heads/ 
    rm .git/index 
    git clean -fdx 
    

    After doing some work:

    git add -A
    git commit -m 
    git push origin 
    

提交回复
热议问题