Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6351185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:57:12+00:00 2026-05-24T21:57:12+00:00

I checked some source code into GIT with the commit message Build 0051. However,

  • 0

I checked some source code into GIT with the commit message “Build 0051”.

However, I can’t seem to find that source code any more – how do I extract this source from the GIT repository, using the command line?

Update

  1. Checked in versions 0043, 0044, 0045 and 0046 using SmartGIT.
  2. Checked out 0043, and checked in versions up to 0051 on a different branch.
  3. Checked out 0043 again.
  4. Now, 0051 has disappeared.

Update

The source code is definitely there, now its a matter of checking it out:

C:\Source>git log -g --grep="0052"
commit 77b1f718d19e5cf46e2fab8405a9a0859c9c2889
Reflog: HEAD@{10} (unknown <Mike@.(none)>)
Reflog message: commit: 20110819 - 1724 - GL: Intermediate version. File version:  v0.5.0 build 0052.
Author: unknown <Mike@.(none)>
Date:   Fri Aug 19 17:24:51 2011 +0100

    20110819 - 1724 - GL: Intermediate version. File version: v0.5.0 build 0052.

C:\Source>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:57:13+00:00Added an answer on May 24, 2026 at 9:57 pm

    To search the commit log (across all branches) for the given text:

    git log --all --grep='Build 0051'
    

    To do so while ignoring case in the grep search:

    git log --all -i --grep='Build 0051'
    

    To search the actual content of commits through a repo’s history, use:

    git grep 'Build 0051' $(git rev-list --all)
    

    to show all instances of the given text, the containing file name, and the commit sha1.

    And to do this while ignoring case, use:

    git grep -i 'Build 0051' $(git rev-list --all)
    

    Note that this searches the entire content of the commit at each stage, and not just the diff changes. To search just the diff changes, use one of the following:

    git log -S[searchTerm]
    git log -G[searchTerm]
    

    Finally, as a last resort in case your commit is dangling and not connected to history at all, you can search the reflog itself with the -g flag (short for --walk-reflogs:

    git log -g --grep='Build 0051'
    

    EDIT: if you seem to have lost your history, check the reflog as your safety net. Look for Build 0051 in one of the commits listed by

    git reflog
    

    You may have simply set your HEAD to a part of history in which the ‘Build 0051’ commit is not visible, or you may have actually blown it away. The git-ready reflog article may be of help.

    To recover your commit from the reflog: do a git checkout of the commit you found (and optionally make a new branch or tag of it for reference)

    git checkout 77b1f718d19e5cf46e2fab8405a9a0859c9c2889
    # alternative, using reflog (see git-ready link provided)
    # git checkout HEAD@{10}
    git checkout -b build_0051 # make a new branch with the build_0051 as the tip
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our build person was having issues compiling some source code that is checked into
After some use Visual Studio 2008 when opening a solution that is checked into
I've got some code that: reads from a ReadableByteChannel into a ByteBuffer , takes
I have a working copy of some source code checked out from SVN -
So I'm using Visual C++ 6.0, and trying to compile some source code, but
I have a wcf service application that has some application startup code in the
I just read some source code is from org.apache.cxf.common.logging.JDKBugHacks and also in http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java .
So I was looking through some boost source code and came across this: (from
My first impression from peeking into the source for Question2Answer is that it seems
Ok, so at some point in time, somebody checked in some files with names

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.