How to create the branch from specific commit in different branch

前端 未结 5 482
旧时难觅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:49

    You have to do:

    git branch  
    

    (you were interchanging the branch name and commit)

    Or you can do:

    git checkout -b  
    

    If in place of you use branch name, you get a branch out of tip of the branch.

提交回复
热议问题