From: Uwe Kleine-König Date: Mon, 08 Aug 2022 16:39:54 GMT Subject: git add -N vs. git stash Message-ID: <20220808163954.tnozlrv7nyx63imu@pengutronix.de> Hello, somehow git stash doesn't understand the index after git add -N: $ git version git version 2.36.1 $ git init -q $ echo foo > foo $ git add foo $ git commit -a -m . [main (root-commit) 0e4b48cb4913] . 1 file changed, 1 insertion(+) create mode 100644 foo $ echo bar > bar $ git add -N bar $ git stash push error: Entry 'bar' not uptodate. Cannot merge. Cannot save the current worktree state I'd say that's not a feature, is it? I would have expected the last command to just remove bar from the index. Best regards Uwe