From: ZoltánFüzesi Date: Wed, 29 Jul 2009 11:37:24 GMT Subject: Re: git-reset any branch head Message-ID: In-Reply-To: Santi Béjar agolina.net> writes: > > 2009/7/29 ZoltánFüzesi 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é