J'écris des scripts pour mon workflow Git.
Je dois réinitialiser une autre branche (existante) à la branche actuelle, sans vérification.
Avant:
CurrentBranch: commit A
OtherBranch: commit B
Après:
CurrentBranch: commit A
OtherBranch: commit A
Équivalent de
$ git checkout otherbranch
$ git reset --soft currentbranch
$ git checkout currentbranch
(Remarque --soft
: je ne veux pas affecter l'arbre de travail.)
Est-ce possible?