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

  • SEARCH
  • Home
  • 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 6930645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:28:27+00:00 2026-05-27T11:28:27+00:00

After rolling back to a previous commit in git using: git checkout <commit hash>

  • 0

After rolling back to a previous commit in git using:

git checkout <commit hash>

and then perform a git log, all my log entries after the commit I just checked out are missing.

How do I get a listing of all commits once I’ve checked out a previous commit? I need to checkout the latest and go forward in time.

  • 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-27T11:28:28+00:00Added an answer on May 27, 2026 at 11:28 am

    git log shows the log from the current HEAD. Assuming the branch you want to see the log of is "master", to see the "full" log again you can do either of the following:

    Checkout the branch and then run git log:

    git checkout master
    git log
    

    Pass a reference to git log to use as the HEAD:

    git log master
    

    and then have a reference of "future" commits to checkout instead.

    If you want to see a log of the changes to Git references (e.g. branches and HEAD), use git reflog.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just dipping my toes into Linq2sql project after years of rolling my own SQL
What options are available for rolling back transactions after the fact in SQL Server?
So I'm running into an interesting issue implementing session ID rolling after log-in/change of
I want to cleanup the database after every test case without rolling back the
I'm using Arch Linux (Rolling Release Distro) and after the system upgrade I'm not
Greetings all. I'm rolling out a website for a client after having tested it
After reading the Head First Design Patterns book and using a number of other
We are rolling out a site for a client using IIS tomorrow. I am
I'm just getting rolling with RoR so I'm sure this is pretty basic. Let's
The .git/objects in my rails project directory is still massive, after deleting hundreds of

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.