3
将其他分支重置为当前分支而无需签出
我正在为Git工作流程编写一些脚本。 我需要将其他(现有)分支重置为当前分支,而无需签出。 之前: CurrentBranch: commit A OtherBranch: commit B 后: CurrentBranch: commit A OtherBranch: commit A 当量 $ git checkout otherbranch $ git reset --soft currentbranch $ git checkout currentbranch (注意--soft:我不想影响工作树。) 这可能吗?
110
git