I wanted to make a new branch production
and copy only one latest commit from current branch develop
to new branch production
. I created and checked out the branch with command git checkout -b production
. But when I review the commits with git log
in production
branch than instead of getting 0 commits I'm getting all commits from the develop
branch. I only want one latest commit from develop branch and I don't know how to achieve it. Can anybody help me with it?
Thanks.