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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:00:56+00:00 2026-06-10T02:00:56+00:00

I recently received a forced update warning from git on a repository which only

  • 0

I recently received a “forced update” warning from git on a repository which only I commit to. I haven’t done any re-basing so I don’t know why this happened. What I want to know is, where should I look to find changes that have potentially been lost?

To illustrate, let there be three copies of the repository, L, D and S (laptop, desktop, server).

To begin all three repositories are in-sync. Then work is done on D and pushed to S. Then L runs git pull and gets “forced update”. Does this mean that there are changes made on L that have been overwritten, or are they somewhere else? How can I find them? Thanks.

  • 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-10T02:00:58+00:00Added an answer on June 10, 2026 at 2:00 am

    A “forced update” means the remote-tracking branch was recent. This happens if you fetch (or pull) after someone does a force push to the repository.

    However, when executing the git pull, your local branch won’t lose any history. Since the remote branch’s history now diverges from your local, git pull will execute a merge. If you look at the most recent commit (just run git log) you should see a merge commit, with the first parent being the previous state of your local branch and the second parent being the new value of your remote branch.

    For illustration, I just reproduced the forced update scenario, and a git pull prints the following:

    > git pull
    remote: Counting objects: 3, done.
    remote: Compressing objects: 100% (2/2), done.
    remote: Total 2 (delta 0), reused 0 (delta 0)
    Unpacking objects: 100% (2/2), done.
    From /Volumes/UserData/Users/kballard/Dev/Scratch/foo/server
     + 7193788...a978889 master     -> origin/master  (forced update)
    Merge made by the 'recursive' strategy.
     0 files changed, 0 insertions(+), 0 deletions(-)
     create mode 100644 d
    

    The fetch portion of the pull prints (forced update), but the new value of origin/master is subsequently merged into the local branch.

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

Sidebar

Related Questions

I have recently used an icon file received from our marketing team. The icon
I recently purchased PAF files from the Royal Mail. I've received them all but
Recently, we received a bug report from one of our users: something on the
I recently received a 64-bit crash dump from a customer. Our processes are all
I recently received a feedback from a colleague about my source code of a
I recently received this design from a potential client, and although we didn't agree
One of our site recently received a lots of attack which all seems similar.
I recently received an email from my girlfriend that spamassassin marked as spam, mostly
I recently received an email from Authorize.net saying: During the week of March 16
I recently received a project that contains multiple web applications with no MVC structure.

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.