class Git::Commands::Stash::Branch
Create a branch from a stash entry
Creates a new branch starting from the commit at which the stash was originally created, applies the stashed changes, and then drops the stash if the changes are applied successfully.
This is useful if the branch on which you ran ‘git stash push` has changed enough that `git stash apply` fails due to conflicts. The new branch will be created at the commit that was HEAD when the stash was created, so applying the stash should succeed.
@example Create branch from latest stash
Git::Commands::Stash::Branch.new(execution_context).call('my-branch')
@example Create branch from specific stash
Git::Commands::Stash::Branch.new(execution_context).call('my-branch', 'stash@{2}')
@note ‘arguments` block audited against git-scm.com/docs/git-stash/2.53.0
@see Git::Commands::Stash Git::Commands::Stash for usage examples
@see git-scm.com/docs/git-stash git-stash documentation
@api private