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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:36:00+00:00 2026-05-11T19:36:00+00:00

Occasionally, when I do the following… git reset –hard HEAD is now at 0123abde

  • 0

Occasionally, when I do the following…

git reset --hard
HEAD is now at 0123abde comment is here
git pull
Updating 0123abde..456789fa

I get the error…

error: Entry 'filename' not uptodate. Cannot merge.

The only workaround I have found is to ‘git reset –hard’, delete the offending file(s) then do ‘git pull’. That doesn’t seem right to me. Shouldn’t a hard reset remove any and all local changes thus allowing me to pull the latest without any merge issues? Am I using git wrong? 🙂

This is on a CI machine so any changes here are unwanted. I’m using git version 1.6.1.9.g97c34 on Windows Vista.

  • 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-11T19:36:01+00:00Added an answer on May 11, 2026 at 7:36 pm

    The general idea behind "Entry 'filename' not uptodate. Cannot merge." is:

    You have changes to files in your working directory that will be overwritten, removed or otherwise lost if the checkout and change to the new branch were to proceed.

    It has been reported that this message could be "spurious" at time, (potentially because "git pull" did not refresh the index before trying to merge) but the fix was in Git1.6.1.
    However, it may still be in mSysGit 1.6.1, so do you see the same error with a more recent mSysGit version ? (like 1.6.3)


    Before Git 2.30.1 (Q1 2021), "git stash"(man) did not work well in a sparsely checked out working tree.

    See commit ba359fd, commit b34ab4a, commit a31e48d (01 Dec 2020) by Elijah Newren (newren).
    (Merged by Junio C Hamano — gitster — in commit 62fb47a, 15 Jan 2021)

    t7012: add a testcase demonstrating stash apply bugs in sparse checkouts

    Signed-off-by: Elijah Newren

    Applying stashes in sparse-checkouts, particularly when the patterns used to define the sparseness have changed between when the stash was created and when it is applied, has a number of bugs.

    The primary problem is that stashes are sometimes only partially applied.

    In most such cases, it does so silently without any warning or error being displayed and with 0 exit status.

    There are, however, a few cases when non-translated error messages are shown and the stash application aborts early.

    The first is when there are files present despite the SKIP_WORKTREE bit being set, in which case the error message shown is:

    error: Entry 'PATHNAME' not uptodate. Cannot merge.
    

    The other situation is when a stash contains new files to add to the working tree; in this case, the code aborts early but still has the stash partially applied, and shows the following error message:

    error: NEWFILE: does not exist and --remove not passed
    fatal: Unable to process path NEWFILE
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 192k
  • Answers 192k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I'm running Blend 3 + SketchFlow (build 3.0.1927) and Visual… May 12, 2026 at 6:24 pm
  • Editorial Team
    Editorial Team added an answer When JQuery opens the dialog box , it moves it… May 12, 2026 at 6:24 pm
  • Editorial Team
    Editorial Team added an answer The problem is that if realloc() fails the function will… May 12, 2026 at 6:24 pm

Related Questions

Occasionally, when I do the following... git reset --hard HEAD is now at 0123abde
I started using bazaar after a long camping in the svn field. I had
I really like the way ASP.NET MVC works. I'd love to implement it on
I have a collection of objects in a database. Images in a photo gallery,
My ASP.NET application utilises a Modules system by using Type.GetType() on a fully-qualified string

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.