git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "John Dlugosz" <JDlugosz@TradeStation.com>
To: <git@vger.kernel.org>
Subject: RE: newb: Given a commit id, find which branches have it as an ancestor
Date: Fri, 13 Mar 2009 12:20:39 -0400	[thread overview]
Message-ID: <450196A1AAAE4B42A00A8B27A59278E70A2AEA5A@EXCHANGE.trad.tradestation.com> (raw)

=== Re: ===
What I'm beginning to suspect is that all the commits that should have
gone to master went to some unnamed branch.
Is that reasonable/possible/likely?  This commit has a full ancestry,
but doesn't appear to be on any branch.
=== end===

Both gitk (comes with git) and QGit showthe branches on the GUI when you highlight the commit of interest.

As for recovering lost commits, I've been down that road, and using fsck or worse yet looking at all the files in the objects directory is no fun.  The 'reflog' is your friend!  Use reflog to spot which one is interesting, and then use something like
                git tag here HEAD@{5}
and then bring up gitk with "all branches" and sort it out.

--John
(please excuse the footer; it's not my idea)

TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

             reply	other threads:[~2009-03-13 16:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-13 16:20 John Dlugosz [this message]
     [not found] <63BEA5E623E09F4D92233FB12A9F794302E0F9B2@emailmn.mqsoftware.com>
2009-03-12 19:38 ` newb: Given a commit id, find which branches have it as an ancestor Kelly F. Hickel
2009-03-13  7:14   ` Johannes Sixt
2009-03-13  7:37     ` Junio C Hamano
2009-03-13 13:31       ` Kelly F. Hickel
2009-03-13 13:30     ` Kelly F. Hickel
  -- strict thread matches above, loose matches on Subject: below --
2009-03-12 15:21 Kelly F. Hickel
2009-03-12 15:38 ` Johannes Sixt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=450196A1AAAE4B42A00A8B27A59278E70A2AEA5A@EXCHANGE.trad.tradestation.com \
    --to=jdlugosz@tradestation.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).