Re: git-reset any branch head
- From
- ZoltánFüzesi <zfuzesi@eaglet.hu>
- Date
- Jul 29, 2009, 11:37 UTC
- Message-ID
- <loom.20090729T112521-558@post.gmane.org>
- In-Reply-To
- <adf1fd3d0907290416q341ea6abi97828e75c50b7191@mail.gmail.com>
Santi Béjar <santi <at> agolina.net> writes:
Show 12 quoted lines
> > 2009/7/29 ZoltánFüzesi <zfuzesi <at> eaglet.hu>: > > Hi, sometimes it would be nice to reset not only the current, > > but any given branch head. What do you think? > > git update-ref > > or do you mean with porcelain commands? > > HTH, > Santi >
Suppose I have 3 branches A, B, C, and A is checked out. I would like to set B's head to point to C's with a command like: git-reset --head B C
Currently I can achieve it by 2 commands: git-checkout B git-reset --hard C
Zé