create a new branch with current changes git code example Example: create branch from existing branch $ git checkout -b myFeature dev