how to create a branch from local with one commit from another branch code example
Example: git create branch with specific commit
# Create a new branch from previous commit's hash
git branch develop 04c900c
# Push the new branch to remote repository
git push --set-upstream origin develop
# Checkout the new branch
git checkout develop