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
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.