[英]Is it possible to create a branch from a stash using the stash name?
I know我知道
git stash branch branchname
creates a new branch using the most recent stash使用最新的存储创建一个新分支
and和
git stash branch branchname stash@{index}
creates a new branch using a stash at a given index.使用给定索引处的 stash 创建一个新分支。 But, is it possible to do something like this?但是,有可能做这样的事情吗?
git stash branch branchname stashname
Note: This didn't work注意:这不起作用
git stash branch branchname stash^{/name}
git stash branch branchname stash^{/name} Or git stash branch stash@{1} git stash branch branchname stash^{/name} 或 git stash branch stash@{1}
This command should works.这个命令应该有效。 The error from the duplication of branch name "already exist".分支名称重复“已经存在”的错误。 Try to use new branch name and it will work.尝试使用新的分支名称,它会起作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.