git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Commits gone AWOL, but not reported by git-fsck --unreachable

From
Robin H. Johnson <robbat2@gentoo.org>
Date
May 19, 2007, 12:09 UTC
Message-ID
<20070519120933.GW17511@curie-int.orbis-terrarum.net>
In-Reply-To
<20070519115245.GA10035@coredump.intra.peff.net>
On Sat, May 19, 2007 at 07:52:45AM -0400, Jeff King wrote:
Show 13 quoted lines
> On Sat, May 19, 2007 at 03:30:11AM -0700, Robin H. Johnson wrote:
> > Problem:
> > --------
> > A bunch of my commits are NOT present in git-log, git-rev-list, or any
> > tool that provides the history of my branches.
> > 
> > If I hack around and recover the commitid, I can pass it to git-show,
> > and the commit does still exist in the data.
> > 
> > git-fsck --unreachable does not list the commit in question either, but
> > does list other blobs and trees.
> Are you sure it isn't in your reflog? Try 'git reflog show' or 'git log
> -g'.
Ahh, they do show up there (and I learnt a new git command now, thanks)
- the ones that I can remember the Subject lines for anyway.

Any hints for the future on finding stuff that is in the reflog but not in the tree? (Remembering every subject line isn't feasible).

-- 
Robin Hugh Johnson
Gentoo Linux Developer & Council Member
E-Mail     : robbat2@gentoo.org
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85
Previous: Jeff KingNext: Jeff King
Message 3 of 17 in “Commits gone AWOL, but not reported by git-fsck --unreachable”
  1. Robin H. JohnsonMay 19, 2007
  2. Jeff KingMay 19, 2007
  3. Robin H. JohnsonMay 19, 2007
  4. Jeff KingMay 19, 2007
  5. Anand KumriaMay 19, 2007
  6. Matthieu MoyMay 19, 2007
  7. Brian GernhardtMay 19, 2007
  8. Matthieu MoyMay 19, 2007
  9. Brian GernhardtMay 19, 2007
  10. Junio C HamanoMay 19, 2007
  11. Cross-reference the manpages for git-name-rev and git-describe (was Re: Commits gone AWOL, but not reported by git-fsck --unreachable)Matthieu Moy, May 20, 2007
  12. Shawn O. PearceMay 21, 2007
  13. Junio C HamanoMay 21, 2007
  14. Shawn O. PearceMay 21, 2007
  15. Matthieu MoyMay 21, 2007
  16. Junio C HamanoMay 22, 2007
  17. Shawn O. PearceMay 22, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.