I am writing some scripts for my Git workflow.
I need to reset another (existing) branch to the current one without checking.
Before:
CurrentBranch: commit A OtherBranch: commit B
After:
CurrentBranch: commit A OtherBranch: commit A
Equivalent
$ git checkout otherbranch $ git reset --soft currentbranch $ git checkout currentbranch
(Note --soft : I don't want to affect the working tree.)
Is it possible?
git
Alexander Gladysh Oct 19 '09 at 20:56 2009-10-19 20:56
source share