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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:42:47+00:00 2026-06-10T22:42:47+00:00

Our central git repository got in a weird state after a commit that involved

  • 0

Our central git repository got in a weird state after a commit that involved a reseted local repository.

I’m not 100% sure exactly what was done in this commit, but after this commit, changes from other commits can get silently overriden with older versions when stuff is pushed from this reseted local repository (“silently” means that overwrites of other commits don’t appear in the change history).

My questions are:
(1) How do I diagnose what happened (preferably without access to the reseted local repo)?
(2) Should I not be able to find out what happened, what is the best course of action to get rid of this state?

For (2) I am thinking about (a) discard the problematic local repo and never use it again, (b) HARD reset the central repo before the problematic commit and replay the commits excluding the problematic commit, manually.

  • 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-10T22:42:49+00:00Added an answer on June 10, 2026 at 10:42 pm

    You could see all changes made by a commit using git show <commit-id>. Not sure what do you mean by “overwrites of other commits don’t appear in the change history”, there is no such thing as a overwrite in git, there are commits only.

    So, you have identified a problematic commit? When just git revert it.

    Or a branch was rewritten by force push (some commits are disappeared from history)? That’s worse, you should use git fsck −−lost-found until it is garbage collected.

    Next time configure the central repo to forbid non-fastforwards by receive.denyNonFastForwards=true or at least enable reflogs by logAllRefUpdates=true.

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

Sidebar

Related Questions

I pushed some changes to our central git repository, and then immediately realized that
we have a Git remote repository (in a way, our central repository) on the
I used git to checkout code from central repository. After I changed the code,
We're running a central git repository (gforge) that everyone pulls from and pushes to.
We have a Library Project that we use for all our central reused code
I have written a C++ app that sync's Outlook emails with our central server
Should ALL locally created GIT branches be pushed to the central-repository on a daily
Our central admin site always displays a blank page. Could not find any errors
In our project we have to commit all changes to the clients svn repository.
I'm considering using GIT or our family photos. The scenario is that both me

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.