{"thread":{"id":"20277","subject":"git-reset any branch head","startedAt":"2009-07-29T10:05:02Z","lastAt":"2009-07-29T12:39:03Z","messageCount":5,"participants":["ZoltánFüzesi","Santi Béjar","Pat Notz"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"119051","messageId":"loom.20090729T095925-556@post.gmane.org","threadId":"20277","inReplyTo":null,"subject":"git-reset any branch head","fromName":"ZoltánFüzesi","fromEmail":"zfuzesi@eaglet.hu","sentAt":"2009-07-29T10:05:02Z","receivedAt":"2009-07-29T10:05:02Z","isPatch":false,"sender":{"key":"zfuzesi@eaglet.hu","avatar":null},"body":"Hi, sometimes it would be nice to reset not only the current,\nbut any given branch head. What do you think?\n\nZé\n"},{"id":"119053","messageId":"adf1fd3d0907290416q341ea6abi97828e75c50b7191@mail.gmail.com","threadId":"20277","inReplyTo":"loom.20090729T095925-556@post.gmane.org","subject":"Re: git-reset any branch head","fromName":"Santi Béjar","fromEmail":"santi@agolina.net","sentAt":"2009-07-29T11:16:54Z","receivedAt":"2009-07-29T11:16:54Z","isPatch":false,"sender":{"key":"santi@agolina.net","avatar":null},"body":"2009/7/29 ZoltánFüzesi <zfuzesi@eaglet.hu>:\n> Hi, sometimes it would be nice to reset not only the current,\n> but any given branch head. What do you think?\n\ngit update-ref\n\nor do  you mean with porcelain commands?\n\nHTH,\nSanti\n"},{"id":"119054","messageId":"loom.20090729T112521-558@post.gmane.org","threadId":"20277","inReplyTo":"adf1fd3d0907290416q341ea6abi97828e75c50b7191@mail.gmail.com","subject":"Re: git-reset any branch head","fromName":"ZoltánFüzesi","fromEmail":"zfuzesi@eaglet.hu","sentAt":"2009-07-29T11:37:24Z","receivedAt":"2009-07-29T11:37:24Z","isPatch":false,"sender":{"key":"zfuzesi@eaglet.hu","avatar":null},"body":"Santi Béjar <santi <at> agolina.net> writes:\n\n> \n> 2009/7/29 ZoltánFüzesi <zfuzesi <at> eaglet.hu>:\n> > Hi, sometimes it would be nice to reset not only the current,\n> > but any given branch head. What do you think?\n> \n> git update-ref\n> \n> or do  you mean with porcelain commands?\n> \n> HTH,\n> Santi\n> \n\nSuppose I have 3 branches A, B, C, and A is checked out.\nI would like to set B's head to point to C's with a command like:\ngit-reset --head B C\n\nCurrently I can achieve it by 2 commands:\ngit-checkout B\ngit-reset --hard C\n\nZé\n"},{"id":"119056","messageId":"1cd1989b0907290533q1553773euce67dff47db546a7@mail.gmail.com","threadId":"20277","inReplyTo":"loom.20090729T112521-558@post.gmane.org","subject":"Re: git-reset any branch head","fromName":"Pat Notz","fromEmail":"patnotz@gmail.com","sentAt":"2009-07-29T12:33:50Z","receivedAt":"2009-07-29T12:33:50Z","isPatch":false,"sender":{"key":"patnotz@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45364?v=4"},"body":"On Wed, Jul 29, 2009 at 5:37 AM, ZoltánFüzesi<zfuzesi@eaglet.hu> wrote:\n> Santi Béjar <santi <at> agolina.net> writes:\n>\n>>\n>> 2009/7/29 ZoltánFüzesi <zfuzesi <at> eaglet.hu>:\n>> > Hi, sometimes it would be nice to reset not only the current,\n>> > but any given branch head. What do you think?\n>>\n>> git update-ref\n>>\n>> or do  you mean with porcelain commands?\n>>\n>> HTH,\n>> Santi\n>>\n>\n> Suppose I have 3 branches A, B, C, and A is checked out.\n> I would like to set B's head to point to C's with a command like:\n> git-reset --head B C\n>\n> Currently I can achieve it by 2 commands:\n> git-checkout B\n> git-reset --hard C\n>\n\nI think you simply want:\n\n   git branch -f B C\n\n~ Pat\n\n> Zé\n>\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>\n"},{"id":"119057","messageId":"loom.20090729T123739-772@post.gmane.org","threadId":"20277","inReplyTo":"1cd1989b0907290533q1553773euce67dff47db546a7@mail.gmail.com","subject":"Re: git-reset any branch head","fromName":"ZoltánFüzesi","fromEmail":"zfuzesi@eaglet.hu","sentAt":"2009-07-29T12:39:03Z","receivedAt":"2009-07-29T12:39:03Z","isPatch":false,"sender":{"key":"zfuzesi@eaglet.hu","avatar":null},"body":"Pat Notz <patnotz <at> gmail.com> writes:\n\n> \n> I think you simply want:\n> \n>    git branch -f B C\n> \n> ~ Pat\n> \n\nYes! :)\nThx,\nZé\n"}]}