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 8119255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:44:59+00:00 2026-06-06T04:44:59+00:00

I have a git project which is only local, and only has a master

  • 0

I have a git project which is only local, and only has a master branch. Yesterday I made a number of commits. Today I made one commit. The commit look fine — it was a diff on existing files and some new files.

However, when I look at my master branch in gitx, it only shows today’s commit, and makes it look like I committed all files from scratch with this one commit.

Git log shows the same thing, but git reflog shows all my previous commits:

$ git log
 commit bd7d6af7f916706c5df6d57bed883d2c2d81f60f
 Author: Sam Fen
 Date:   Wed Jun 20 12:00:38 2012 -0400

  Add Genotype class, update naming

$ git reflog
 bd7d6af HEAD@{0}: checkout: moving from master to master
 bd7d6af HEAD@{1}: commit: Add Genotype class, update naming
 bf0d3dd HEAD@{2}: commit: Add start to genetics manipulation library
 2335bf2 HEAD@{3}: commit: Convert to CoffeeScript
 4c26713 HEAD@{4}: commit: Initial commit with basic structure, trivial Jasmine t

The reflog shows what seems to be a weird double commit with the same hash (bd7d6af) for the last one, but I think that’s just because after I saw the empty history in gitx, I went back to the command line and typed ‘git checkout master’ just to make sure I was on master (I was).

Any thoughts as to what might have happened, and how I can recover my history?

  • 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-06-06T04:45:01+00:00Added an answer on June 6, 2026 at 4:45 am

    It looks like bd7d6af thinks it is an initial commit

    You can try git reset bf0d3dd; git add -A; git commit and see if you get a proper commit.

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

Sidebar

Related Questions

Say I have a project in a git repository. The project has a branch
We have a git project which has quite a big history. Specifically, early in
I have a rails project deployed on heroku which has only a production environment.
In one of my git projects, I have a zip file which bundles a
I have a small project on git, on which I am the sole developer.
I am using git for a large legacy project which has two branches -
I've just inherited a project which was maintained using Git. At one point, the
I have recently moved a project from SVN to git, and my colleague only
There's an SVN open-source project which I have read-only access to, and I'd like
I am using one open source project which is hosted on git-hub. I am

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.