Estou escrevendo alguns scripts para meu fluxo de trabalho Git.
Eu preciso redefinir outro branch (existente) para o atual, sem check-out.
Antes:
CurrentBranch: commit A
OtherBranch: commit B
Depois de:
CurrentBranch: commit A
OtherBranch: commit A
Equivalente a
$ git checkout otherbranch
$ git reset --soft currentbranch
$ git checkout currentbranch
(Observação --soft: não quero afetar a árvore de trabalho.)
Isso é possível?