how to get a branch from a git code code example Example: git command to create a branch from another branch $ git checkout -b myfeature dev