How to create the branch from specific commit in different branch

前端 未结 5 535
旧时难觅i
旧时难觅i 2021-01-29 22:14

I have made several commits in the master branch and then merged them to dev branch.

I want to create a branch from a specific commit in dev branch, which was first comm

5条回答
  •  我在风中等你
    2021-01-29 22:51

    Try

    git checkout 
    git checkout -b new_branch
    

    The commit should only exist once in your tree, not in two separate branches.

    This allows you to check out that specific commit and name it what you will.

提交回复
热议问题