git-reset any branch head
From: ZoltánFüzesi <hidden>
Date: 2016-06-15 22:47:07
Hi, sometimes it would be nice to reset not only the current, but any given branch head. What do you think? Zé
5 messages, 3 authors, 2016-06-15 · open the first message on its own page
From: ZoltánFüzesi <hidden>
Date: 2016-06-15 22:47:07
Hi, sometimes it would be nice to reset not only the current, but any given branch head. What do you think? Zé
From: Santi Béjar <hidden>
Date: 2016-06-15 22:47:07
2009/7/29 ZoltánFüzesi [off-list ref]:
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
From: ZoltánFüzesi <hidden>
Date: 2016-06-15 22:47:07
Santi Béjar <santi <at> agolina.net> writes:
2009/7/29 ZoltánFüzesi <zfuzesi <at> eaglet.hu>:quoted
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é
From: Pat Notz <hidden>
Date: 2016-06-15 22:47:07
On Wed, Jul 29, 2009 at 5:37 AM, ZoltánFüzesi[off-list ref] wrote:
Santi Béjar <santi <at> agolina.net> writes:quoted
2009/7/29 ZoltánFüzesi <zfuzesi <at> eaglet.hu>:quoted
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, SantiSuppose 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
I think you simply want: git branch -f B C ~ Pat
Zé -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
From: ZoltánFüzesi <hidden>
Date: 2016-06-15 22:47:07
Pat Notz <patnotz <at> gmail.com> writes:
I think you simply want: git branch -f B C ~ Pat
Yes! :) Thx, Zé