git add --intent-to-add and git stash
- From
Jonathan Müller <jonathanmueller.dev@gmail.com>
- Date
- Oct 4, 2020, 18:53 UTC
- Message-ID
- <b16f61b9-7f0f-38ab-7200-58ad5e659321@gmail.com>
Hello,
when I try to `git stash` a file I have previously added using `git add --intent-to-add`, I get an `error: Entry 'X' not uptodate. Cannot merge.` error. I have to manually remove the file from the index, stash, and add it again after I've popped the stash.
Can `git stash` be taught to handle such files automatically?
Thanks, Jonathan