From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: "Lipofsky, Dan -ND" <Dan.Lipofsky.-ND@disney.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: status shows no changes but stage won't pop
Date: Tue, 2 Dec 2025 22:20:37 +0000 [thread overview]
Message-ID: <aS9mNdJSJP49-V4Q@fruit.crustytoothpaste.net> (raw)
In-Reply-To: <95EA2230-530D-4EB5-AF19-ADED54976F17@disney.com>
[-- Attachment #1: Type: text/plain, Size: 1801 bytes --]
On 2025-12-02 at 19:23:53, Lipofsky, Dan -ND wrote:
> I believe I've uncovered a weird bug in the git client (2.49.0 and 2.52.0, installed with brew on MacOS 15.6.1).
>
> status shows no changes, but stash won't pop because it says it would overwrite local changes
>
> $ git status -u
> On branch release/2.0.0
> Your branch is ahead of 'origin/release/2.0.0' by 16 commits.
> (use "git push" to publish your local commits)
>
> nothing to commit, working tree clean
>
> $ git stash pop
> error: Your local changes to the following files would be overwritten by merge:
> src/main/java/com/wdpr/nge/edt/gstexpds/web/ExperienceRecordController.java
> Please commit your changes or stash them before you merge.
> Aborting
> On branch release/2.0.0
> Your branch is ahead of 'origin/release/2.0.0' by 16 commits.
> (use "git push" to publish your local commits)
>
> nothing to commit, working tree clean
> The stash entry is kept in case you need it again.
>
> $ git version
> git version 2.52.0
>
>
> So how did I get here?
> I did something weird (accidentally, because I was distracted with multiple windows open).
> I was doing a "git rebase -i" from the command-line,
> while at the same time I staged a change using Sourcetree,
> and then exited the rebase (I think without actually changing anything).
Do you maybe have some files that are marked assume-unchanged or
skip-worktree here? I wonder if that might be causing this issue,
although I don't know for sure.
You can try this to see:
git ls-files -v | grep -v '^H'
In a normal case, I would expect to not see any output from that
command, but if one of the assume-unchanged or skip-worktree bits are
set, then you would.
--
brian m. carlson (they/them)
Toronto, Ontario, CA
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
next prev parent reply other threads:[~2025-12-02 22:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-02 19:23 status shows no changes but stage won't pop Lipofsky, Dan -ND
2025-12-02 22:20 ` brian m. carlson [this message]
2025-12-03 14:40 ` Lipofsky, Dan -ND
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aS9mNdJSJP49-V4Q@fruit.crustytoothpaste.net \
--to=sandals@crustytoothpaste.net \
--cc=Dan.Lipofsky.-ND@disney.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).